CVE-2019-19325: Reflected XSS in SilverStripe
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57441%
CWE
Published
2/24/2020
Updated
2/6/2024
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 |
---|---|---|---|
silverstripe/framework | composer | >= 4.5.0, < 4.5.2 | 4.5.2 |
silverstripe/framework | composer | >= 4.0.0, < 4.4.5 | 4.4.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper HTML attribute sanitization in form rendering. The patch shows:
- In Form.php, attributes were previously only sanitized for values, not names. The fix applies Convert::raw2att to both.
- In FormField.php, non-scalar values were JSON-encoded without proper escaping, and attribute names weren't sanitized.
- The Convert class documentation updates warn about not escaping array keys, which aligns with the 'non-scalar attributes' mentioned in the CVE.
- Test cases validate XSS prevention through attribute escaping, confirming these methods were the attack surface.