Skip to main content

AngleSharp CVE-2026-142223

| EUVDEUVD-2026-141607 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-12-02 VulnCheck GHSA-wr8p-99xp-p48r
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted HTML with payload in noscript child attribute
  2. Exploit
    AngleSharp re-serializes with < and > unescaped
  3. Execution
    Victim browser reparses, markup breaks out of attribute
  4. Impact
    img onerror runs attacker script in victim session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the consuming application uses AngleSharp (before 1.8.6) to serialize/re-serialize HTML in which an attacker controls an attribute value - specifically an attribute on a child of a noscript element - AND that the resulting serialized markup is subsequently reparsed/rendered by a web browser. The concrete payload is '</noscript>' followed by an img element with an onerror handler placed in that attribute; the bug is that HtmlMarkupFormatter.WriteAttributeValue emits '<' and '>' literally instead of as '&lt;'/'&gt;', so the payload escapes the attribute when reparsed under noscript's altered parsing rules. Limiting factors: a victim must actually render the re-serialized output (UI:P); the specific mutation/re-parsing precondition must hold (AT:P) and the required markup shape makes the path non-trivial (AC:H); only versions 0 through <1.8.6 are affected; and applications that do not round-trip untrusted HTML through AngleSharp serialization into a browser are not exposed. Impact is limited to script execution in the victim's browser context (Low C/I, no availability impact).

Impact

All decision signals point to a genuinely low-priority issue rather than a high-CVSS-but-overrated finding - the vendor's own CVSS 4.0 base is 2.3 (Low) and the vuln.today decision label is 'monitor', not act_now/emergency. The vector itself stacks three mitigating factors: AC:H (specific markup structure required), AT:P (a particular parsing/re-serialization precondition), and UI:P (a victim must render the re-serialized output), with only Low confidentiality/integrity impact and no availability impact. Exploitation status is 'no public exploit identified at time of analysis' - the supplied references are a source line, the patch commit, the release tag, and a VulnCheck advisory, none of which is a PoC or working-exploit reference. EPSS is not provided in the input and there is no CISA KEV listing, so there is no quantitative exploitation-probability signal to weigh; this absence should be treated as missing data, not as evidence of safety. PR:N means no authentication is needed to supply the malicious input, but realistic risk is gated by the application actually using AngleSharp to serialize untrusted HTML that is subsequently reparsed by a browser. Net: a low-severity sanitization/serialization-correctness flaw in a client-side .NET library, worth patching on a normal cycle but not an emergency.

Exploit ScenarioDerived

An application uses AngleSharp to parse and re-serialize user-supplied HTML (for example as a sanitization or storage-normalization step), and the serialized output is later rendered in a victim's browser. Because HtmlMarkupFormatter.WriteAttributeValue writes '<' and '>' unescaped, an attacker places a crafted value in a noscript child attribute containing '</noscript>' followed by an img element with an onerror handler; when the re-serialized markup is parsed under noscript's different rules, the payload breaks out of the attribute and the onerror script executes in the victim's session. No public exploit code is identified in the provided data, and UI:P means a victim must load the affected output for the script to run.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Mutation cross-site scripting in AngleSharp before 1.8.6 lets attacker-influenced HTML survive serialization and then execute script when a browser re-parses the output. The flaw is in HtmlMarkupFormatter.WriteAttributeValue, which emits '<' and '>' literally inside serialized attribute values; a payload such as a closing </noscript> tag followed by an img element with an onerror handler, placed in an attribute of a noscript child, breaks out of the attribute when the markup is re-parsed under noscript's altered parsing rules. Only applications that round-trip untrusted HTML through AngleSharp serialization and then render it in a browser are exposed, and a victim must interact with the rendered output; the vendor scores this 2.3 (CVSS 4.0) and the priority signal is monitor, with no public exploit identified at time of analysis.

RemediationAI

Upgrade to AngleSharp 1.8.6, the release that contains the fix commit 86d09cdc7fa45f8739fc5892bbca4c1a04be6dae (https://github.com/AngleSharp/AngleSharp/releases/tag/v1.8.6), which escapes '<' and '>' as &lt; and &gt; in serialized attribute values as browsers now do. Where the upgrade cannot be applied immediately, avoid emitting serialized output produced by AngleSharp from attacker-controlled attribute values, particularly attributes on children of noscript elements, and filter or encode literal '<' and '>' in attribute values before the string is handed to a browser; this requires a custom post-serialization step and risks altering legitimate content that intentionally contains angle brackets in attributes. Applications that never re-render AngleSharp-serialized untrusted markup in a browser are not exposed and can schedule the upgrade normally. The vendor advisory is at https://www.vulncheck.com/advisories/anglesharp-before-1.8.6-mutation-xss-via-htmlmarkupformatter-attribute-serialization.

Affected VersionsENISA

AngleSharp 0 <1.8.6

Affected Packages

euvd anglesharp fix: 1.8.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AngleSharp is a .NET HTML/CSS DOM library that parses and re-serializes markup. Its HtmlMarkupFormatter class implements the HTML fragment serialization algorithm, and WriteAttributeValue (lines 130-144 of HtmlMarkupFormatter.cs in v1.8.5) wrote less-than and greater-than characters into attribute values unescaped. This is the classic mutation XSS (CWE-79) precondition: markup that is inert under the parse rules used at input time can become active when the serialized string is re-parsed under different rules. The demonstrated case abuses noscript, whose child content is parsed as raw text in scripting-enabled browsers, so a literal </noscript> inside an attribute value terminates the raw-text element on re-parse and the following img element with an onerror handler is then treated as live markup. The upstream commit 86d09cdc7fa45f8739fc5892bbca4c1a04be6dae fixes this by writing '<' and '>' as &lt; and &gt;, matching the browser behavior introduced by the HTML specification change of May 2025 and documented in the same changelog entry alongside unrelated DOM equality, import/clone and depth-limit fixes.

Know when Anglesharp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 4.7 MEDIUM

Network-delivered XSS needing no auth (PR:N) but a victim render (UI:R) and a specific noscript re-serialization structure (AC:H); scope changes to the browser (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
popular .NET HTML parsing/sanitization library, common but not universally deployed
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy