CVE-2021-41188 Authenticated Stored XSS in Administration

Medium 5.7 Published Updated

Authenticated attackers can inject malicious scripts into the Shopware administration interface, potentially compromising admin accounts.

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-2021-41188?

CVE-2021-41188 is a medium-severity cross-site scripting vulnerability in Shopware Shopware, published on 26 Oct 2021. 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 open source e-commerce software. Versions prior to 5.7.6 contain a cross-site scripting vulnerability. This issue is patched in version 5.7.6. Two workarounds are available. Using the security plugin or adding a particular following config to the `.htaccess` file will protect against cross-site scripting in this case. There is also a config for those using nginx as a server. The plugin and the configs can be found on the GitHub Security Advisory page for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2021-41188?

2 open source packages ship an affected version, including shopware/shopware. It affects 1 product.

PackageAffectedFixed in
shopware/shopware PackagistAll versions5.7.6
shopware/shopware PackagistAll versions5.7.6

Products include Shopware Shopware.

How do I fix CVE-2021-41188?

Upgrade shopware/shopware to 5.7.6 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-2021-41188 being exploited?

There is no known exploitation of CVE-2021-41188 in the wild and no public exploit code.

All Shopware Shopware vulnerabilities

Sources

Also known as GHSA-4p3x-8qw9-24w9.

Is CVE-2021-41188 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free