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.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay.commerce:com.liferay.commerce.shop.by.diagram.webMaven | >= 1.0.41, < 1.0.83 | 1.0.83 |
Affected products
2- Liferay/DXPv5Range: 7.4.13-u18
Patches
1288ba1f41f8cLPD-15105 clean svg from malicious code
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
4News mentions
0No linked articles in our index yet.