GitHub Advisoryadvisory · Packagist

GHSA-3vjc-5x79-m9r8 SilverStripe XXE Vulnerability in CSSContentParser

MEDIUM Published 2022-05-24 Modified 2024-04-25 Official page ↗
Aliases
CVE-2020-25817
Ecosystem
Packagist
Packages
silverstripe/framework
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-611
Reviewed
2024-04-25

Affected packages

• Packagist silverstripe/framework: >= 4.0.0, < 4.7.4 → fixed in 4.7.4

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

Related

Alias · CVE (1)

  • CVE-2020-25817 SilverStripe through 4.6.0-rc1 has an XXE Vulnerability in CSSContentParser. vulnerability

Weakness · CWE (1)

  • CWE-611 Improper Restriction of XML External Entity Reference weakness

References