CVE-2026-142223: AngleSharp before 1.8.6 Mutation XSS via HtmlMarkupFormatter Attribute Serialization

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
AngleSharp AngleSharp<1.8.6

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using AngleSharp before version 1.8.6 are affected when they serialize HTML with HtmlMarkupFormatter and later provide that re-serialized output to a browser for parsing. The vulnerable path involves attribute values on a noscript child element.

2

What does an attacker need to exploit it?

An attacker needs a way to embed crafted HTML into content that the application processes and re-serializes with the affected formatter. The payload uses a closing noscript tag followed by an img element with an onerror handler, and exploitation requires a browser to parse the resulting output.

3

Is user interaction required?

Yes. The supplied vector specifies UI:R, meaning a user must interact with or view content that causes the browser to parse the malicious re-serialized HTML.

4

What should be done if immediate patching is not possible?

The provided data does not identify a workaround. Avoid re-serializing untrusted HTML with HtmlMarkupFormatter or prevent untrusted content from reaching the affected attribute-serialization path until upgrading to 1.8.6 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203