search menu icon-carat-right cmu-wordmark

CERT Coordination Center

XSS vulnerability in Shopware 6 enables Admin Token Theft and RCE

Vulnerability Note VU#157374

Original Release Date: 2026-10-13 | Last Revised: 2026-10-13

Overview

Shopware 6.7 contains a stored cross-site scripting (XSS) vulnerability in its media upload functionality that can lead to administrator credential compromise and remote code execution.

Description

Shopware is an open-source e-commerce platform used to build and manage online stores. It provides merchants with customizable product pages, administrative interfaces, plugin functionality, and a media management system that allows users to upload and serve files.

CVE-2026-104937 In affected versions, Shopware’s media upload API accepts HTML files that are later served as text/html without effective Content-Security-Policy or X-Content-Type-Options security headers. An attacker with access to the media upload capability can therefore upload an HTML file with malicious embedded JavaScript, and if an administrator opens the corresponding media URL, the attacker can exfiltrate the administrator's authentication token and use it to gain unauthorized access to the Shopware Administration API.

Impact

Successful exploitation of this vulnerability could allow an attacker with media creation/upload access to execute arbitrary JavaScript in the administrator browser context, steal valid administrator authentication tokens, and gain privileged access to the Shopware Administration API. If the affected administrator account possesses extension management privileges, an attacker could upload, install, and activate malicious plugins to achieve arbitrary PHP code execution on the underlying OS with the privileges of the Shopware process.

Solution

Unfortunately, the CERT/CC was unable to reach Shopware to coordinate this vulnerability. Until a patch is available, users can reduce risk by limiting access to the media upload functionality to trusted roles or disabling HTML file uploads entirely, preventing attackers from creating malicious browser-interpretable content.

Acknowledgements

Thanks to Deflask13 for researching and reporting this vulnerability. This document was written by Molly Jaconski.

Vendor Information

157374
 

Shopware Unknown

Notified:  2026-09-08 Updated: 2026-10-13

CVE-2026-104937 Unknown

Vendor Statement

We have not received a statement from the vendor.


Other Information

CVE IDs: CVE-2026-104937
API URL: VINCE JSON | CSAF
Date Public: 2026-10-13
Date First Published: 2026-10-13
Date Last Updated: 2026-10-13 18:14 UTC
Document Revision: 1

Sponsored by CISA.