{"id":"CVE-2021-41188","aliases":["EUVD-2021-2156","GHSA-4p3x-8qw9-24w9"],"status":"published","title":"Authenticated Stored XSS in Administration","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.","severity":{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00761,"percentile":0.55815,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-10-26T15:00:16Z","modified":"2026-06-17T04:08:03Z","fixes":[{"ecosystem":"Packagist","package":"shopware/shopware","fixed_in":["5.7.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"shopware/shopware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.6"}]}]},{"source":"osv","ecosystem":"Packagist","package":"shopware/shopware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.6"}]}],"versions":["1.0.2","1.0.8","4.2.0","4.2.0-rc.1","4.2.1","4.2.1.1","4.2.2","4.2.3","4.3.0","4.3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.3.6","4.3.7","5.3.0","v5.0.0","v5.0.0-BETA1","v5.0.0-BETA2","v5.0.0-RC1","v5.0.0-RC2","v5.0.0-RC3","v5.0.1","v5.0.2","v5.0.2-RC1","v5.0.3","v5.0.3-RC1","v5.0.4","v5.0.4-RC1","v5.1.0","v5.1.0-RC2","v5.1.0-RC3","v5.1.1","v5.1.2","v5.1.2-RC1","v5.1.2-RC2","v5.1.3","v5.1.3-RC1","v5.1.4","v5.1.5","v5.1.6","v5.2.0","v5.2.0-BETA1","v5.2.0-RC1","v5.2.0-RC2","v5.2.0-RC3","v5.2.1","v5.2.10","v5.2.11","v5.2.12","v5.2.13","v5.2.14","v5.2.15","v5.2.16","v5.2.17","v5.2.18","v5.2.19","v5.2.2","v5.2.20","v5.2.21","v5.2.22","v5.2.23","v5.2.24","v5.2.25","v5.2.26","v5.2.27","v5.2.3","v5.2.4","v5.2.5","v5.2.6","v5.2.7","v5.2.8","v5.2.9","v5.3.4","v5.3.5","v5.3.6","v5.3.7","v5.4.0","v5.4.0-RC1","v5.4.1","v5.4.2","v5.4.3","v5.4.4","v5.4.5","v5.4.6","v5.5.0","v5.5.0-BETA1","v5.5.0-RC1","v5.5.1","v5.5.10","v5.5.2","v5.5.3","v5.5.4","v5.5.5","v5.5.6","v5.5.7","v5.5.8","v5.5.9","v5.6.0","v5.6.0-RC1","v5.6.1","v5.6.10","v5.6.2","v5.6.3","v5.6.4","v5.6.5","v5.6.6","v5.6.7","v5.6.8","v5.6.9","v5.7.0","v5.7.0-RC1","v5.7.0-RC2","v5.7.1","v5.7.2","v5.7.3","v5.7.4","v5.7.5"]}],"products":[{"vendor":"shopware","product":"shopware"}],"references":[{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-4p3x-8qw9-24w9","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/shopware/shopware/commit/37213e91d525c95df262712cba80d1497e395a58","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","web"]},{"url":"https://github.com/shopware/shopware/releases/tag/v5.7.6","tags":["x_refsource_MISC","x_transferred","Release Notes","Technical Description","web"]},{"url":"https://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41188","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-4p3x-8qw9-24w9"},{"url":"https://github.com/shopware/shopware","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-41188","title":"Authenticated Stored XSS in Administration","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.","status":"published","published":"2021-10-26T15:00:16Z","modified":"2024-08-04T03:08:31.242Z","cvss":[{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:32:59.105382Z"}],"euvd":[{"id":"EUVD-2021-2156","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.","status":"published","published":"2021-10-26T15:00:16Z","modified":"2024-08-04T03:08:31Z","cvss":[{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T03:24:18.784846Z"}],"ghsa":[{"id":"GHSA-4p3x-8qw9-24w9","title":"Authenticated Stored XSS in shopware/shopware","description":"### Impact\nAuthenticated Stored XSS in Administration\n\n### Patches\nUse the Security Plugin:\nhttps://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html\n\n### Workarounds\nIf you cannot use the security plugin, add the following config to your `.htaccess` file\n\n```\n\u003cIfModule mod_headers.c\u003e\n    \u003cFilesMatch \"\\.(?i:svg)$\"\u003e\n        Header set Content-Security-Policy \"script-src 'none'\"\n    \u003c/FilesMatch\u003e\n\u003c/IfModule\u003e\n```\n\nIf you are using nginx as server config, you can add the following to your configuration:\n```\nserver {\n    # ...\n\n    location ~* ^.+\\.svg$ {\n        add_header Content-Security-Policy \"script-src 'none'\";\n    }\n}\n```\n\n### References\nhttps://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021\n\n","status":"published","published":"2021-10-27T18:53:18Z","modified":"2023-02-01T05:06:29Z","cvss":[{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:39.086869Z"}],"nvd":[{"id":"CVE-2021-41188","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.","status":"published","published":"2021-10-26T15:15:10.607Z","modified":"2026-06-17T04:08:03.377Z","cvss":[{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:00.549994Z"}],"osv":[{"id":"GHSA-4p3x-8qw9-24w9","title":"Authenticated Stored XSS in shopware/shopware","description":"### Impact\nAuthenticated Stored XSS in Administration\n\n### Patches\nUse the Security Plugin:\nhttps://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html\n\n### Workarounds\nIf you cannot use the security plugin, add the following config to your `.htaccess` file\n\n```\n\u003cIfModule mod_headers.c\u003e\n    \u003cFilesMatch \"\\.(?i:svg)$\"\u003e\n        Header set Content-Security-Policy \"script-src 'none'\"\n    \u003c/FilesMatch\u003e\n\u003c/IfModule\u003e\n```\n\nIf you are using nginx as server config, you can add the following to your configuration:\n```\nserver {\n    # ...\n\n    location ~* ^.+\\.svg$ {\n        add_header Content-Security-Policy \"script-src 'none'\";\n    }\n}\n```\n\n### References\nhttps://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021\n\n","status":"published","published":"2021-10-27T18:53:18Z","modified":"2026-05-04T08:46:12.805530007Z","cvss":[{"version":"3.1","score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:37.148947Z"}]}}
