All vulnerabilities

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.

From shopware/shopware's security advisory.

Affected software

SoftwareAffected versions
ShopwareServers and applications · github:shopware/shopware
  • Every version before 6.6.10.18

About Shopware

open-source e-commerce platform

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
6.76.7.16.0Until 28 Feb 2028
6.66.6.10.31Until 28 Feb 2028
6.56.5.8.19Until 28 Feb 2027
5.75.7.20Ended 31 Jul 2024
6.46.4.20.2Ended 14 May 2025
6.36.3.5.4Ended

From endoflife.date.

References