CVE-2020-25817 SilverStripe XXE Vulnerability in CSSContentParser
Misuse of a developer utility for parsing user-submitted data allows XXE attacks, potentially leading to XSS or data exposure in SilverStripe applications.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-25817?
CVE-2020-25817 is a medium-severity vulnerability in Silverstripe Silverstripe, published on 8 Jun 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
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]).
Weakness: CWE-611
Which versions are affected by CVE-2020-25817?
3 open source packages ship an affected version, including silverstripe/framework and silverstripe. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 4.0.0 | 4.7.4 |
silverstripe/framework Packagist | From 4.0.0 | 4.7.4 |
silverstripe Bitnami | All versions to 4.6.0-rc1 | 4.6.0 |
Products include Silverstripe Silverstripe.
How do I fix CVE-2020-25817?
Upgrade silverstripe/framework to 4.7.4 or later.
Is CVE-2020-25817 being exploited?
There is no known exploitation of CVE-2020-25817 in the wild and no public exploit code.
Other vulnerabilities in Silverstripe Silverstripe
Sources
Also known as BIT-silverstripe-2020-25817, GHSA-3vjc-5x79-m9r8.