MediumGHSA-3vjc-5x79-m9r8BIT-silverstripe-2020-25817CVE-2020-25817

SilverStripe XXE Vulnerability in CSSContentParser

Published 24 May 2022 · Updated 25 Apr 2024

Affected package

Affected
>=4.0.0 <4.7.4
Fixed in
4.7.4
Update to the fixed version for your release line, for example:composer require silverstripe/framework:^4.7.4

Details

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]).

Is GHSA-3vjc-5x79-m9r8 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/framework, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.