Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
2.3

CVE-2026-142223: AngleSharp before 1.8.6 enables script injection through HTML attributes

CVE-2026-142223 · published today
Summary

The AngleSharp library (versions earlier than 1.8.6) can insert unsafe characters into HTML attribute values when it rewrites markup. This allows an attacker to place malicious code that runs when a browser displays the rewritten page. Upgrade AngleSharp to version 1.8.6 or later to stop the unsafe behavior.

What to do
  • Update anglesharp anglesharp to version 1.8.6 or later.
Affected software
VendorProductAffected versions
anglesharp anglesharp < 1.8.6
Original advisory text
AngleSharp before 1.8.6 Mutation XSS via HtmlMarkupFormatter Attribute Serialization
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 </noscript> followed by an img element with an onerror handler in a noscript child attribute, executing script when browsers parse the re-serialized output.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
2.3 Low
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published2 Dec 2026
Updated2 Dec 2026
First seen2 Dec 2026
Sources
CVE-2026-142223 · MITRE
Track software like this
Free during beta