CVE-2022-24746:
HTML injection possibility in voucher code form in Shopware
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.70156%
CWE
Published
3/10/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
shopware/platform | composer | <= 6.4.8.0 | 6.4.8.1 |
shopware/core | composer | <= 6.4.8.0 | 6.4.8.1 |
shopware/storefront | composer | <= 6.4.8.0 | 6.4.8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unsanitized user input in error message contexts. The commit patching CVE-2022-24746 adds HtmlSanitizer
to both promotion code handling (PromotionCollector
) and product number handling (CartLineItemController
). The test cases explicitly verify HTML
sanitization for both vectors, confirming these were injection points. Pre-patch versions lacked output encoding when embedding user-controlled values into HTML
responses through error messages.