{"id":"CVE-2026-48015","aliases":["CVE-2026-48015","GHSA-xvhc-gm7j-mhmc"],"related":[],"kind":"vulnerability","state":"published","title":"Shopware: Stored XSS via SVG file upload — no SVG sanitization","summary":"Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, SVG files are in the allowed_extensions whitelist in src/Core/Framework/Resources/config/packages/shopware.yaml and can be uploaded via the media manager without SVG content sanitization in the upload pipeline from MediaUploadController to FileSaver to TypeDetector, allowing malicious SVG JavaScript such as onload, <script>, and <foreignObject> to execute in the Shopware domain when the uploaded SVG is viewed. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, SVG files are in the allowed_extensions whitelist in src/Core/Framework/Resources/config/packages/shopware.yaml and can be uploaded via the media manager without SVG content sanitization in the upload pipeline from MediaUploadController to FileSaver to TypeDetector, allowing malicious SVG JavaScript such as onload, <script>, and <foreignObject> to execute in the Shopware domain when the uploaded SVG is viewed. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.","source":"cvelist"},{"lang":"en","text":"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","format":"markdown","source":"ghsa"}],"published":"2026-06-04T19:35:26.000Z","modified":"2026-09-10T03:51:09.882Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 6.6.10.18","status":"affected"},{"version":">= 6.7.0.0, < 6.7.10.1","status":"affected"}],"vendor":"shopware","product":"shopware","source":"cvelist"},{"ranges":[{"version":"< 6.6.10.18","status":"affected"},{"version":">= 6.7.0.0, < 6.7.10.1","status":"affected"}],"vendor":"shopware","product":"platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.7.0.0","status":"affected","fixed":"6.7.10.1"}],"ecosystem":"Packagist","package":"shopware/core","purl":"pkg:composer/shopware/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.6.10.18"}],"ecosystem":"Packagist","package":"shopware/core","purl":"pkg:composer/shopware/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.7.0.0","status":"affected","fixed":"6.7.10.1"}],"ecosystem":"Packagist","package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.6.10.18"}],"ecosystem":"Packagist","package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"ghsa"}],"references":[{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-xvhc-gm7j-mhmc","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware/commit/745a3ea3b77d4fe0f78c595ef527d8453a134497","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shopware/shopware/commit/fd6d39bdb62dfa06fe62c7c87b37607d84094cda","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shopware/shopware/releases/tag/v6.6.10.18","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware/releases/tag/v6.7.10.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-17T18:11:50.846Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48015","url":"https://www.cve.org/CVERecord?id=CVE-2026-48015","licence":"CVE Terms of Use","modified":"2026-07-17T18:11:57.809Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xvhc-gm7j-mhmc","url":"https://github.com/advisories/GHSA-xvhc-gm7j-mhmc","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:09.882Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48015","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48015","licence":"Public domain","modified":"2026-07-17T19:17:15.720Z"}],"updatedAt":"2026-11-25T22:59:28.505Z","epss":{"score":0.00278,"percentile":0.21758,"date":"2026-12-01T12:00:22.000Z"}}