Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-51541

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-51541
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:28 UTC · Revision 1

Source evidence

CVE-2025-51541

core-osv · Original source

Published 5 Aug 2025, 00:00 UTC

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.

osv:CVE-2025-51541
Complete source record
{
  "id": "6403ec1ca649b494c97fc9121a9e898a807b5bb797bbe01d2ab2d318f3b9a214",
  "url": "https://osv.dev/vulnerability/CVE-2025-51541",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-51541",
    "summary": "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.",
    "evidence": "osv:CVE-2025-51541",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-51541",
      "aliases": [
        "CVE-2025-51541"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/shopware/shopware",
              "type": "GIT",
              "events": [
                {
                  "introduced": "01c209a305adaabaf894e6929290c69c4a07adef"
                },
                {
                  "fixed": "bd9969c109a08e53778fbfe52a0c3dcdc1977572"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.1.0"
                      },
                      {
                        "fixed": "6.2.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51541.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.758380060Z",
      "provider": "osv",
      "references": [
        "https://gist.github.com/anonx-hunter/a7ef32a01d7d888413b08bf8589fdd7e#file-cve-2025-51541-shopware-xss-md",
        "https://www.dax-tokaido.com/recovery/install/database-configuration/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51541.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-51541"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51541.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-51541",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521788,
  "published_at": "2025-08-05T00:00:00+00:00"
}