{"id":"CVE-2025-51541","details":"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.","modified":"2026-03-14T12:45:32.252074Z","published":"2025-08-05T20:15:37.967Z","references":[{"type":"WEB","url":"https://www.dax-tokaido.com/recovery/install/database-configuration/"},{"type":"EVIDENCE","url":"https://gist.github.com/anonx-hunter/a7ef32a01d7d888413b08bf8589fdd7e#file-cve-2025-51541-shopware-xss-md"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/shopware/shopware","events":[{"introduced":"01c209a305adaabaf894e6929290c69c4a07adef"},{"fixed":"bd9969c109a08e53778fbfe52a0c3dcdc1977572"}],"database_specific":{"versions":[{"introduced":"6.1.0"},{"fixed":"6.2.3"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51541.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}