CVE-2025-51541: XSS
A stored cross-site scripting (XSS) vulnerability exists in the Shopware 6 installation interface at /recovery/install/database-configuration/. The cdatabaseschema 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-51541?
CVE-2025-51541 has a Medium severity level due to the potential for stored cross-site scripting (XSS) attacks affecting user data.
How do I fix CVE-2025-51541?
To fix CVE-2025-51541, ensure that user input in the c_database_schema field is properly sanitized before rendering to the browser.
What systems are affected by CVE-2025-51541?
CVE-2025-51541 affects the Shopware 6 installation interface during the database configuration phase.
What kind of attack does CVE-2025-51541 enable?
CVE-2025-51541 enables stored cross-site scripting (XSS) attacks, allowing attackers to inject malicious scripts into web pages.
How can I prevent CVE-2025-51541 in the future?
To prevent CVE-2025-51541, implement strict input validation and output encoding on all user-supplied data in your applications.