CVE-2021-3863:
Cross-site Scripting in snipe-it
5.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.46911%
CWE
Published
10/21/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
snipe/snipe-it | composer | < 5.3.0 | 5.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper neutralization of SVG file inputs during upload processing. All three controller methods handled file uploads by directly storing file contents without SVG-specific sanitization. The patch introduced SVG sanitization using enshrined/svgSanitize
, indicating these functions previously lacked proper input validation. The XSS risk occurs when browsers render malicious SVG scripts stored through these endpoints. The affected code paths are clearly shown in the pre-patch diffs where SVG handling lacked sanitization.