Unrated severityNVD Advisory· Published Dec 2, 2026
AngleSharp before 1.8.6 Mutation XSS via HtmlMarkupFormatter Attribute Serialization
CVE-2026-142223
Description
AngleSharp before 1.8.6 contains a mutation cross-site scripting vulnerability in HtmlMarkupFormatter.WriteAttributeValue, which writes less-than and greater-than characters unescaped in serialized attribute values. Attackers can embed followed by an img element with an onerror handler in a noscript child attribute, executing script when browsers parse the re-serialized output.
Patches
Vulnerability mechanics
References
4- github.com/AngleSharp/AngleSharp/commit/86d09cdc7fa45f8739fc5892bbca4c1a04be6daemitrepatch
- www.vulncheck.com/advisories/anglesharp-before-1.8.6-mutation-xss-via-htmlmarkupformatter-attribute-serializationmitrethird-party-advisory
- github.com/AngleSharp/AngleSharp/blob/v1.8.5/src/AngleSharp/Html/HtmlMarkupFormatter.csmitretechnical-description
- github.com/AngleSharp/AngleSharp/releases/tag/v1.8.6mitrerelease-notes
News mentions
0No linked articles in our index yet.