CVE-2022-31057 Authenticated Stored XSS in Shopware Administration
Authenticated attackers can inject malicious scripts into the Shopware Administration interface, potentially compromising admin sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-31057?
CVE-2022-31057 is a medium-severity cross-site scripting vulnerability in Shopware Shopware, published on 27 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Shopware is an open source e-commerce software made in Germany. Versions of Shopware 5 prior to version 5.7.12 are subject to an authenticated Stored XSS in Administration. Users are advised to upgrade. There are no known workarounds for this issue.
Weakness: CWE-79
Which versions are affected by CVE-2022-31057?
2 open source packages ship an affected version, including shopware/shopware. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
shopware/shopware Packagist | All versions | 5.7.12 |
shopware/shopware Packagist | All versions | 5.7.12 |
Products include Shopware Shopware.
How do I fix CVE-2022-31057?
Upgrade shopware/shopware to 5.7.12 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-31057 being exploited?
There is no known exploitation of CVE-2022-31057 in the wild and no public exploit code.
Other vulnerabilities in Shopware Shopware
- CVE-2023-22731 Improper Control of Generation of Code in Twig rendered views in shopware
- CVE-2016-3109 Shopware RCE Vulnerability
- CVE-2024-22406 Blind SQL-injection in DAL aggregations in Shopware
- CVE-2021-32711 Leak of information via Store-API
- CVE-2026-31887 Shopware unauthenticated data extraction possible through store-api.order endpoint
Sources
Also known as GHSA-q754-vwc4-p6qj.