Advisory

GHSA-4p3x-8qw9-24w9

Also known as: CVE-2021-41188

Summary

Authenticated Stored XSS in shopware/shopware

Details

Impact
Authenticated Stored XSS in Administration

Patches
Use the Security Plugin:
https://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html

Workarounds
If you cannot use the security plugin, add the following config to your .htaccess file

<IfModule mod_headers.c>
    <FilesMatch "\.(?i:svg)$">
        Header set Content-Security-Policy "script-src 'none'"
    </FilesMatch>
</IfModule>

If you are using nginx as server config, you can add the following to your configuration:

server {
    # ...

    location ~* ^.+\.svg$ {
        add_header Content-Security-Policy "script-src 'none'";
    }
}

References
https://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-10-27 18:53 UTC
Modified
2026-05-04 08:46 UTC

Affected packages and fixes

shopware/shopware

Packagist · All systems

Affected

  • introduced 0, fixed 5.7.6 (ecosystem)

Fixed versions

5.7.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences