MediumGHSA-7prj-9ccr-hr3q
Sylius has potential Cross Site Scripting vulnerability via the "Province" field in the Checkout and Address Book
Affected versions
before 1.9.12, 1.10.0-alpha.1 to before 1.10.16, 1.11.0-alpha.1 to before 1.11.17, 1.12.0-alpha.1 to before 1.12.16, 1.13.0-alpha.1 to before 1.13.1 - fixed in 1.9.12Details
### Impact There is a possibility to save XSS code in province field in the Checkout and Address Book and then execute it on these pages. The problem occurs when you open the address step page in the checkout or edit the address in the address book. This only affects the base UI Shop provided by Sylius. ### Patches The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.16, 1.13.1 and above. ### Workarounds 1. Create new file `assets/shop/sylius-province-field.js`: ```js // assets/shop/sylius-province-field.js function sanitizeInput(input) { const div = document.createElement('d
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29376
- https://github.com/Sylius/Sylius/security/advisories/GHSA-7prj-9ccr-hr3q
- https://nvd.nist.gov/vuln/detail/CVE-2024-29376
- https://github.com/Sylius/Sylius/commit/fb0ecb275747e364f1d4744ed8605c57f9bd8a80
- https://github.com/Sylius/Sylius
- https://github.com/r2tunes/Reports/blob/main/Sylius.md
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected