5.7medium
Authenticated Stored XSS in Administration
- Severity
- 5.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.76% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4p3x-8qw9-24w9
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| shopware shopware | < 5.7.6, before 5.7.6 | CVE List, NVD |
| shopware/shopware (Packagist) | before 5.7.6 | GitHub Advisory Database |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N |
| GitHub | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
Shopware es un software de comercio electrónico de código abierto. Las versiones anteriores a la 5.7.6, contienen una vulnerabilidad de tipo cross-site scripting. Este problema está parcheado en la versión 5.7.6. Se presentan dos soluciones disponibles. El uso del plugin de seguridad o la adición de la siguiente configuración particular al archivo ".htaccess" protegerá contra el ataque de tipo cross-site scripting en este caso. También se presenta una configuración para aquellos que usan nginx como servidor. El plugin y las configuraciones pueden encontrarse en la página de GitHub Security Advisory para esta vulnerabilidad
References
| https://github.com/shopware/shopware/security/advisories/GHSA-4p3x-8qw9-24w9 | third-party-advisory, web | |
| https://github.com/shopware/shopware/commit/37213e91d525c95df262712cba80d1497e395a58 | patch, third-party-advisory, web | |
| https://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021 | release-notes, vendor-advisory, web | |
| https://github.com/shopware/shopware/releases/tag/v5.7.6 | release-notes, technical-description, web | |
| https://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html | product, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41188 | advisory | |
| https://github.com/shopware/shopware | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41188 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4p3x-8qw9-24w9 changed 2026-05-04 | CC-BY-4.0 |
| NVD | CVE-2021-41188 changed 2026-06-17 | Public domain |