CVE-2025-51541 Details
Description
A stored cross-site scripting (XSS) vulnerability exists in the Shopware 6 installation interface at /recovery/install/database-configuration/. The c_database_schema field fails to properly sanitize user-supplied input before rendering it in the browser, allowing an attacker to inject malicious JavaScript. This vulnerability can be exploited via a Cross-Site Request Forgery (CSRF) attack due to the absence of CSRF protections on the POST request. An unauthenticated remote attacker can craft a malicious web page that, when visited by a victim, stores the payload persistently in the installation configuration. As a result, the payload executes whenever any user subsequently accesses the vulnerable installation page, leading to persistent client-side code execution.
A stored cross-site scripting vulnerability has been identified in the Shopware 6 installation interface, specifically in versions prior to 6.2.3. The issue arises in the database configuration step, where the 'c_database_schema' field does not adequately sanitize user input before it is displayed in the browser. This lack of proper input validation allows attackers to inject malicious JavaScript, which is then executed in the context of the user’s browser. The vulnerability can be exploited through a Cross-Site Request Forgery (CSRF) attack, as the POST request lacks CSRF protection. An unauthenticated remote attacker can create a malicious web page that, when visited by a user, injects and stores the JavaScript payload in the installation configuration. Consequently, the injected script runs whenever the vulnerable installation page is accessed, leading to persistent client-side code execution.
Users are advised to update to Shopware version 6.2.3 or later. It is also recommended to implement proper CSRF protections and output encoding to prevent similar vulnerabilities.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/anonx-hunter/a7ef32a01d7d888413b08bf8589fdd7e#file-cve-2025-51541-shopware-xss-md | CISA-ADP | ExploitThird Party Advisory |
| https://gist.github.com/anonx-hunter/a7ef32a01d7d888413b08bf8589fdd7e#file-cve-2025-51541-shopware-xss-md | [email protected] | ExploitThird Party Advisory |
| https://www.dax-tokaido.com/recovery/install/database-configuration/ | [email protected] | Not Applicable |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| shopware shopware | >= 6.1.0, < 6.2.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Aug 7, 2025 | CVE Modified | CISA-ADP |
| Aug 5, 2025 | New CVE Received | [email protected] |