GHSA-3vjc-5x79-m9r8
SilverStripe XXE Vulnerability in CSSContentParser
Quick fix
GHSA-3vjc-5x79-m9r8 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.7.4Details
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]).
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0Fixed in: 4.7.4composer require silverstripe/framework:^4.7.4References
- https://nvd.nist.gov/vuln/detail/CVE-2020-25817[ADVISORY]
- https://forum.silverstripe.org/c/releases[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/blog/tag/release[WEB]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2021-25817[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/framework"]}'