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
| Vendor | Product | Affected 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.
References
- https://www.vulncheck.com/advisories/anglesharp-before-1.8.6-mutation-xss-via-ht...
- https://github.com/AngleSharp/AngleSharp/releases/tag/v1.8.6
- https://github.com/AngleSharp/AngleSharp/blob/v1.8.5/src/AngleSharp/Html/HtmlMar...
- https://github.com/AngleSharp/AngleSharp/commit/86d09cdc7fa45f8739fc5892bbca4c1a...
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
Track software like this
Free during beta