CVE-2026-48015

Shopware: Stored XSS via SVG file upload — no SVG sanitization

Published Jul 17, 2026 CVSS 3.1 · 4.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in Shopware’s media upload pipeline allows an attacker to upload an SVG file that is listed in the allowed_extensions whitelist and reaches the upload controller without any content sanitization. The SVG may contain malicious JavaScript in elements such as onload, <script>, or <foreignObject>. When the stored SVG is later viewed via the storefront, the embedded script executes with the privileges of the page, enabling session hijacking, credential theft, or other XSS attacks. The vulnerability is a Stored Input Validation flaw, CWE‑79, and is remedied in versions 6.6.10.18 and 6.7.10.1.

Affected Systems

The issue exists in Shopware Platform and Shopware products before version 6.6.10.18 and 6.7.10.1. Any installation with these earlier releases that allows SVG uploads is vulnerable. Versions 6.6.10.18, 6.7.10.1, or later no longer allow unsanitized SVG uploads.

Risk and Exploitability

The CVSS score of 4.9 indicates moderate severity and the EPSS score of < 1 % shows low probability of current exploitation. The vulnerability is not listed in the CISA KEV catalog. Likely attack conditions require an attacker with permission to upload media via the Shopware media manager; once an SVG is uploaded, mere viewing of the file triggers the XSS payload.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Shopware to version 6.6.10.18, 6.7.10.1 or later.
  • If an upgrade is not immediately possible, edit the configuration to remove "svg" from the allowed extensions whitelist and disable SVG uploads via the media manager.
  • Implement stricter content‑type validation for uploaded files, ensuring that any remaining SVG uploads are sanitized or blocked before rendering.

Generated by OpenCVE AI on July 30, 2026 at 23:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xvhc-gm7j-mhmc Shopware: Stored XSS via SVG file upload — no SVG sanitization
History
Type Values Removed Values Added
First Time appeared Shopware
Shopware platform
Shopware shopware
Vendors & Products Shopware
Shopware platform
Shopware shopware
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Shopware: Stored XSS via SVG file upload — no SVG sanitization
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 17, 2026, 6:11 PM
Reserved
May 20, 2026, 5:44 PM
Status
Deferred
Published
Jul 17, 2026, 6:17 PM
Modified
Jul 17, 2026, 7:17 PM