VDB
Sign up
MEDIUM5.7

GHSA-4p3x-8qw9-24w9

Authenticated Stored XSS in shopware/shopware

Quick fix

GHSA-4p3x-8qw9-24w9 — shopware/shopware: upgrade to the fixed version with the command below.

composer require shopware/shopware:^5.7.6

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/shopware/shopware
Introduced in: 0Fixed in: 5.7.6
Fixcomposer require shopware/shopware:^5.7.6

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/shopware/shopware"]}'