Servers and applications
CVE-2026-48015
Stored XSS via SVG file upload — no SVG sanitization
- Severity
- Medium 4.9
- Published
- 19 May 2026
- Last changed
- 20 May 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 6.6.10.18
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Read data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N- Also known as
- GHSA-xvhc-gm7j-mhmc
- Sources
- Project advisories (GitHub)
Description
Hi Shopware Security Team,
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, , ) executes in the context of the Shopware domain when accessed.
In src/Core/Framework/Resources/config/packages/shopware.yaml, line 194:
SVG 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.
I searched the entire codebase for SVG sanitization — no DOMPurify, no svg-sanitize, no strip_tags on SVG content, nothing.
Stored 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.
Affected software
| Software | Affected versions |
|---|---|
ShopwareServers and applications · github:shopware/shopware |
|
About Shopware
open-source e-commerce platform
- Monthly downloads (Packagist)
- 291,680Packagist, 15 Nov 2026
- Total downloads (Packagist)
- 6,581,000Packagist, 15 Nov 2026
- GitHub stars
- 3,471GitHub, 15 Nov 2026
- Forks
- 1,226GitHub, 15 Nov 2026
- Latest release
- v6.7.16.0GitHub, 15 Nov 2026
- Released
- 2 Nov 2026GitHub
- License
- MIT LicenseWikidata
- Written in
- PHPWikidata
- First published on GitHub
- 3 May 2018GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 6.7 | 6.7.16.0 | Until 28 Feb 2028 |
| 6.6 | 6.6.10.31 | Until 28 Feb 2028 |
| 6.5 | 6.5.8.19 | Until 28 Feb 2027 |
| 5.7 | 5.7.20 | Ended 31 Jul 2024 |
| 6.4 | 6.4.20.2 | Ended 14 May 2025 |
| 6.3 | 6.3.5.4 | Ended |
From endoflife.date.
Vulnerabilities in Shopware
- In our list
- 123
- Published in the last 12 months
- 39
- Critical, last 12 months
- 6
- High, last 12 months
- 15
- Known exploited
- 0
- GHSA-23g6-m65m-5qcgMissing authorization permits unauthorized media uploadsMedium 4.3 18 Nov 2026
- GHSA-3q8x-6fc9-5428Insufficient media validation permits unauthorized file operationsHigh 7.7 18 Nov 2026
- GHSA-x6mg-frx2-6p8jInsufficient App package validation permits server file disclosureHigh 7.4 18 Nov 2026
- GHSA-59j5-8mv2-2fc5Insufficient Twig template isolation permits privilege escalationHigh 7.3 18 Nov 2026
- GHSA-fmvh-847r-3hmqStore API aggregation validation bypass exposes sensitive informationCritical 9.1 18 Nov 2026
- GHSA-4v2w-jpmg-wp82Insufficient API access control exposes sensitive informationHigh 7.5 18 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-48015
- GitHub Advisory Database https://github.com/advisories/GHSA-xvhc-gm7j-mhmc
- github.com https://github.com/shopware/shopware/security/advisories/GHSA-xvhc-gm7j-mhmc