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

CVE-2025-43829

CVE-2025-43829

Description

Stored cross-site scripting (XSS) vulnerability in diagram type products in Commerce in Liferay Portal 7.4.3.18 through 7.4.3.111, and Liferay DXP 2023.Q4.0 through 2023.Q4.5, 2023.Q3.1 through 2023.Q3.8, and 7.4 update 18 through update 92 allows remote attackers to inject arbitrary web script or HTML via a crafted payload injected into a SVG file.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.liferay.commerce:com.liferay.commerce.shop.by.diagram.webMaven
>= 1.0.41, < 1.0.831.0.83

Affected products

2

Patches

1
288ba1f41f8c

LPD-15105 clean svg from malicious code

https://github.com/liferay/liferay-portalandrea.ale.sbarraFeb 4, 2024via ghsa
1 file changed · +6 0
  • modules/dxp/apps/commerce/commerce-shop-by-diagram-web/src/main/resources/META-INF/resources/js/DiagramWithAutomapping/D3Handler.js+6 0 modified
    @@ -45,6 +45,12 @@ class D3Handler extends DiagramZoomHandler {
     	_printSVGImage() {
     		return fetch(this._imageURL)
     			.then((response) => response.text())
    +			.then((svContent) => {
    +				return svContent
    +					.replace(/<script[\s\S]*?<\/script>/gi, '')
    +					.replace(/ on\w+="[^"]*"/gi, '')
    +					.replace(/ xlink:href="[^"]*"/gi, '');
    +			})
     			.then((svgContent) => {
     				this._d3zoomWrapper.html(svgContent);
     
    

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

4

News mentions

0

No linked articles in our index yet.