CVE-2025-43829: Stored XSS Vulnerability in Liferay Commerce Shop by Diagram Web
Summary
CVE-2025-43829: Liferay Portal Commerce Shop is vulnerable to Stored XSS through SVG file. Affects com.liferay.commerce:com.liferay.commerce.shop.by.diagram.web versions >= 1.0.41, < 1.0.83. Fixed in 1.0.83. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package 'com.liferay.commerce:com.liferay.commerce.shop.by.diagram.web' is part of the Liferay Commerce suite, which provides tools for managing online commerce, including product diagrams. This package allows users to create and manage diagram-type products within the Liferay Portal. However, it has been found to be vulnerable to a stored Cross-Site Scripting (XSS) attack, which can compromise the security of web applications using this package.
Vulnerability Detail
The stored XSS vulnerability exists in the handling of SVG files within the diagram type products in Liferay Portal versions 7.4.3.18 to 7.4.3.111 and Liferay DXP versions 2023.Q4.0 to 2023.Q4.5, 2023.Q3.1 to 2023.Q3.8, and 7.4 update 18 to update 92. Attackers can exploit this vulnerability by injecting arbitrary web scripts or HTML into SVG files, which can then be executed in the context of a user's browser, potentially leading to data theft, session hijacking, or other malicious activities.
How To Fix
Minimum fixed version
1.0.83
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate patching is not possible, consider disabling the feature that allows SVG file uploads or sanitizing user inputs to prevent the execution of malicious scripts.
Conclusion
The stored XSS vulnerability in the Liferay Commerce Shop by Diagram Web package poses a significant risk to applications using affected versions. It is crucial to update to the patched version 1.0.83 or later to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for com.liferay.commerce:com.liferay.commerce.shop.by.diagram.web →
FAQ
The vulnerability is a stored Cross-Site Scripting (XSS) issue that allows attackers to inject malicious scripts into SVG files.
Affected versions include Liferay Portal 7.4.3.18 to 7.4.3.111 and Liferay DXP 2023.Q4.0 to 2023.Q4.5, among others.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring signup.
Exploitation of this vulnerability can lead to data theft, session hijacking, and other malicious activities affecting users of the application.
As a temporary measure, you can disable SVG file uploads or implement input sanitization to prevent script execution.