CVE-2021-3841: Cross site scripting in sylius/sylius
4.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.14321%
CWE
Published
11/15/2024
Updated
11/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
sylius/sylius | composer | < 1.9.10 | 1.9.10 |
sylius/sylius | composer | >= 1.10.0, < 1.10.11 | 1.10.11 |
sylius/sylius | composer | >= 1.11.0, < 1.11.2 | 1.11.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper sanitization of SVG uploads. The key evidence is in the ImageUploader.php
diff showing the addition of SVG sanitization using enshrined/svg-sanitize. The original vulnerable implementation (prior to patch) directly wrote file contents without sanitization. The commit adds a new sanitizeContent()
method that specifically handles SVG sanitization, indicating this was the missing security check. The CWE-79 classification and advisory details about SVG-based XSS corroborate that the image upload processing was the vulnerable path.