PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-54570 AngleSharp CVE debrief

CVE-2026-54570 AngleSharp MathAnnotationXmlElement DOM Differential XSS. The AngleSharp library prior to version 1.5.0 has a vulnerability in MathAnnotationXmlElement. When the encoding attribute is set to text/html or application/xhtml+xml, it is not treated as an HTML integration point. This causes the Consume method in HtmlDomBuilder.cs to route tokens through foreign-content parsing instead of HTML parsing. A sanitizer can 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

Vendor
AngleSharp
Product
Unknown
CVSS
MEDIUM 6.9
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-18
Original CVE updated
2026-09-18
Advisory published
2026-08-18
Advisory updated
2026-09-18

Who should care

Developers and administrators using the AngleSharp library in their applications should assess their exposure and take necessary actions to mitigate the vulnerability. This includes reviewing and updating the library to version 1.5.0 or later, implementing input validation and sanitization for HTML parsing, and monitoring for suspicious activity. Additionally, operators, platform administrators, vulnerability management teams, and security teams should be

Why it matters

CVE-2026-54570 is a medium-severity vulnerability in the AngleSharp library that can lead to mutation cross-site scripting (XSS) attacks. Developers and administrators using the library should assess their exposure and take necessary actions to mitigate the vulnerability.

  • Cross-site scripting (XSS) attacks may be possible due to the DOM differential
  • Applications using AngleSharp library may be vulnerable to mutation cross-site scripting
  • Developers should verify and update to version 1.5.0 or later to prevent exploitation
  • Input validation and sanitization may be necessary to prevent XSS attacks

Technical summary

The AngleSharp library prior to version 1.5.0 has a vulnerability in MathAnnotationXmlElement. When the encoding attribute is set to text/html or application/xhtml+xml, it is not treated as an HTML integration point. This causes the Consume method in HtmlDomBuilder.cs to route tokens through foreign-content parsing instead of HTML parsing. A sanitizer can 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.

Defensive priority

Medium

Recommended defensive actions

  • Review and update AngleSharp library to version 1.5.0 or later
  • Implement input validation and sanitization for HTML parsing
  • Monitor for suspicious activity and implement additional security measures as needed
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The CVE record and NVD entry provide details on the AngleSharp library vulnerability. The issue is caused by MathAnnotationXmlElement not being treated as an HTML integration point when its encoding attribute is text/html or application/xhtml+xml. This leads to a DOM differential that can be exploited for mutation cross-site scripting.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-54570 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-54570

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-54570 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54570

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.