SilverStripe XXE Vulnerability in CSSContentParser
Moderate severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Apr 25, 2024
Package
Affected versions
>= 4.0.0, < 4.7.4
Patched versions
4.7.4
Description
Published by the National Vulnerability Database
Jun 8, 2021
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Apr 25, 2024
Last updated
Apr 25, 2024
SilverStripe through 4.6.0-rc1 has an XXE Vulnerability in CSSContentParser. A developer utility meant for parsing HTML within unit tests can be vulnerable to XML External Entity (XXE) attacks. When this developer utility is misused for purposes involving external or user submitted data in custom project code, it can lead to vulnerabilities such as XSS on HTML output rendered through this custom code. This is now mitigated by disabling external entities during parsing. (The correct CVE ID year is 2020 [CVE-2020-25817, not CVE-2021-25817]).
References