VYPR
Moderate severityNVD Advisory· Published Oct 22, 2025· Updated Oct 22, 2025

CVE-2025-62248

CVE-2025-62248

Description

A reflected cross-site scripting (XSS) vulnerability, resulting from a regression, has been identified in Liferay Portal 7.4.0 through 7.4.3.132, and Liferay DXP 2025.Q2.0 through 2025.Q2.9, 2025.Q1.0 through 2025.Q1.16, 2024.Q4.0 through 2024.Q4.7, 2024.Q3.1 through 2024.Q3.13, 2024.Q2.1 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.19 allows a remote, authenticated attacker to inject and execute JavaScript code via the _com_liferay_dynamic_data_mapping_web_portlet_DDMPortlet_definition parameter. The malicious payload is executed within the victim's browser when they access a URL that includes the crafted parameter.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.liferay:com.liferay.dynamic.data.mapping.webMaven
<= 5.0.122

Affected products

2

Patches

1
a659c94bcfb2

LPD-62034 Properly escape definition parameter for DDMFormField

1 file changed · +3 2
  • modules/apps/dynamic-data-mapping/dynamic-data-mapping-web/src/main/java/com/liferay/dynamic/data/mapping/web/internal/portlet/action/RenderStructureFieldMVCResourceCommand.java+3 2 modified
    @@ -113,8 +113,9 @@ protected void doServeResource(
     			createDDMFormFieldRenderingContext(
     				httpServletRequest, httpServletResponse);
     
    -		String ddmFormFieldHTML = ddmFormFieldRenderer.render(
    -			ddmFormField, ddmFormFieldRenderingContext);
    +		String ddmFormFieldHTML = HtmlUtil.escapeAttribute(
    +			ddmFormFieldRenderer.render(
    +				ddmFormField, ddmFormFieldRenderingContext));
     
     		httpServletResponse.setContentType(ContentTypes.TEXT_HTML);
     
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.