AngleSharp: HTML5 Spec Compliance: mXSS via annotation-xml HTML Integration Point Bypass
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-80.
Summary
AngleSharp is a .NET library for parsing angle bracket based hyper-texts. Prior to 1.5.0, MathAnnotationXmlElement in AngleSharp/Mathml/Dom/Internal/MathAnnotationXmlElement.cs is not treated as an HTML integration point when its encoding attribute is text/html or application/xhtml+xml, causing Consume in AngleSharp/Html/Parser/HtmlDomBuilder.cs to route tokens through foreign-content parsing instead of HTML parsing. A sanitizer can therefore observe a different DOM from the browser that reparses the serialized output. An attacker can combine this namespace differential with markup-breaking characters in an attribute value so that an element hidden from the sanitizer becomes active script-capable HTML after browser reparse, resulting in mutation cross-site scripting. This issue is fixed in version 1.5.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AngleSharp | AngleSharp | before 1.5.0 | 1.5.0 | Patch available | CNA |
| — | AngleSharp (NuGet) | before 1.5.0 | 1.5.0 | Patch available | GHSA-pgww-w46g-26qg |
- AngleSharp VendorAngleSharp Affected before 1.5.0 Fixed in 1.5.0 Patch available CNA
- AngleSharp (NuGet) Vendor— Affected before 1.5.0 Fixed in 1.5.0 Patch available GHSA-pgww-w46g-26qg
Remediation
- Fix · CNA AngleSharp (AngleSharp) Fixed in 1.5.0
- Fix · GHSA-pgww-w46g-26qg AngleSharp (NuGet) Fixed in 1.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54570
- 2026-10-03 Alias added: GHSA-pgww-w46g-26qg
References
Sources
- CVE-2026-54570 · CVE Program
- CVE-2026-54570 · NVD
- FIRST EPSS
- GHSA-pgww-w46g-26qg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences