CVE-2025-51541

Source
https://cve.org/CVERecord?id=CVE-2025-51541
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51541.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-51541
Published
2025-08-05T20:15:37.967Z
Modified
2026-03-14T12:45:32.252074Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/shopware/shopware

Affected ranges

Type
GIT
Repo
https://github.com/shopware/shopware
Events
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"