CVE-2025-51541: Cross-site Scripting
Source CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 26 Oct 2026, 12:29 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Immediate mitigation should include restricting access to the /recovery/install/database-configuration/ endpoint to trusted administrators only, ideally via network-level controls such as VPNs or IP whitelisting.
- Implement strict input validation and output encoding on the c_database_schema field to ensure all user-supplied data is properly sanitized before rendering.
- Add robust CSRF protections on all POST requests in the installation interface, such as synchronizer tokens or double-submit cookies, to prevent unauthorized request forgery.
- Monitor web server logs for suspicious POST requests to the vulnerable endpoint and unusual user activity during installation phases.
- Educate administrators and developers about the risks of visiting untrusted web pages while logged into or accessing the Shopware installation interface.
- Apply security headers such as Content Security Policy (CSP) to limit the execution of unauthorized scripts.
- Once available, promptly apply official patches or updates from Shopware addressing this vulnerability.
- Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block XSS payloads targeting this endpoint.
- Conduct security audits and penetration testing focusing on installation and configuration interfaces to identify similar weaknesses.
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.