CVE-2026-48015: Shopware Cross-Site Scripting Vulnerability
MODERATECVE-2026-48015 is a MODERATE (CVSS 4.9) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Shopware libraries in the Packagist ecosystem. The issue involves stored xss via svg file upload — no svg sanitization. Remediation is available by upgrading affected packages to version 6.7.10.1, 6.6.10.18.
CVE-2026-48015 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-48015
To remediate this vulnerability, upgrade all affected Shopware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade shopware/core to 6.7.10.1
Upgrade shopware/core to 6.6.10.18
Upgrade shopware/platform to 6.7.10.1
Upgrade shopware/platform to 6.6.10.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for shopware/core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-48015, inspect your project dependencies for Shopware:
inspect dependencies for shopware/core
Analyze the terminal output to locate any version of Shopware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.7.10.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Shopware, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-48015 Affected Shopware Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
shopware/core
|
Packagist |
≥ 6.7.0.0
< 6.7.10.1
|
6.7.10.1
|
|
shopware/core
|
Packagist |
< 6.6.10.18
|
6.6.10.18
|
|
shopware/platform
|
Packagist |
≥ 6.7.0.0
< 6.7.10.1
|
6.7.10.1
|
|
shopware/platform
|
Packagist |
< 6.6.10.18
|
6.6.10.18
|
References
Frequently Asked Questions
What is CVE-2026-48015?
Which Shopware versions are affected?
What version fixes CVE-2026-48015?
Is shopware/core affected?
Is shopware/platform affected?
What is the CVSS score of CVE-2026-48015?
What CWE is associated with CVE-2026-48015?
How can I check Packagist dependencies for CVE-2026-48015?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xvhc-gm7j-mhmc",
"modified" : "2026-06-04T19:35:26Z",
"published" : "2026-06-04T19:35:26Z",
"aliases" : [ "CVE-2026-48015" ],
"summary" : "Shopware: Stored XSS via SVG file upload — no SVG sanitization",
"details" : "SVG files are in the `allowed_extensions` whitelist and can be uploaded by any admin user via the media manager. There is zero SVG content sanitization anywhere in the upload pipeline. A malicious SVG with JavaScript (`onload`, `<script>`, `<foreignObject>`) executes in the context of the Shopware domain when accessed.\n\n## The Problem\n\nIn `src/Core/Framework/Resources/config/packages/shopware.yaml`, line 194:\n\n```yaml\nallowed_extensions: [\"jpg\", \"jpeg\", \"png\", \"webp\", \"avif\", \"gif\", \"svg\", ...]\n```\n\nSVG is whitelisted. The upload path (`MediaUploadController` → `FileSaver` → `TypeDetector`) recognizes SVG as `ImageType` with `VECTOR_GRAPHIC` flag, but no code strips JavaScript, event handlers, or external entity references from the SVG XML.\n\nA search of the entire codebase for SVG sanitization returns — no `DOMPurify`, no `svg-sanitize`, no `strip_tags` on SVG content, nothing.\n\n## Impact\n\nStored XSS affecting all users who view the uploaded SVG. In an e-commerce context, this can lead to admin account takeover, customer data theft, or malicious plugin installation.\n\n## Suggested Fix\n\nEither:\n\n1. **Remove SVG from `allowed_extensions`** if SVG upload is not a core requirement\n2. **Sanitize SVG content** on upload using a library like `enshrined/svg-sanitize` (strips scripts, event handlers, external references)\n3. **Serve SVGs with `Content-Disposition: attachment`** to prevent inline rendering\n4. **Serve SVGs from a separate domain** (like Nextcloud's `usercontent.apps.nextcloud.com`)\n\nOption 2 is the most practical — `enshrined/svg-sanitize` is already used by WordPress and other PHP projects.\n\nRegards & BG,\nKeyvan Hardani",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.7.0.0"
}, {
"fixed" : "6.7.10.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.6.10.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/platform"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.7.0.0"
}, {
"fixed" : "6.7.10.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/platform"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.6.10.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/shopware/shopware/security/advisories/GHSA-xvhc-gm7j-mhmc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shopware/shopware"
}, {
"type" : "WEB",
"url" : "https://github.com/shopware/shopware/releases/tag/v6.6.10.18"
}, {
"type" : "WEB",
"url" : "https://github.com/shopware/shopware/releases/tag/v6.7.10.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-04T19:35:26Z",
"nvd_published_at" : null
}
}