Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTML containing &#² numeric entity
-
DeliveryDecimal collector accepts non-ASCII Unicode digit
-
Exploitint(digits,10) raises uncaught ValueError
-
ExecutionException propagates out of public API
-
ImpactParser aborts, denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Improper handling of unexpected data type
|
| Exploitation Conditions | The only prerequisite is that the target application passes attacker-controlled HTML into justhtml's public JustHTML(...) constructor or stream(...) API - no authentication, no non-default configuration, no user interaction, and no special deployment mode are required, and both HTML text and attribute-value contexts are vulnerable (PR:N/UI:N/AC:L confirm this). The specific trigger is a decimal numeric character reference containing a non-ASCII Unicode digit (confirmed characters include ² U+00B2, ³ U+00B3, ¹ U+00B9, ⁰ U+2070, ₀-₃ U+2080-U+2083); the trailing semicolon is optional. Limiting factors: exploitation requires that the application actually routes untrusted HTML through justhtml (versions <= 3.16.0 per the advisory), and the hexadecimal entity path (&#x...;) is NOT affected because it uses a strict ASCII character set - only the decimal branch is exploitable. There is no configuration flag that disables the vulnerable decimal entity path; the advisory states exposure can only be bounded by constraining or pre-filtering untrusted HTML until an upgrade is available. |
| Impact | All impact signals point to a single, availability-only denial of service: the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remote, low-complexity, unauthenticated trigger with no user interaction, and the impact metrics confirm VC:N/VI:N/VA:H - no confidentiality or integrity loss, only availability. The 8.7 High score is driven entirely by the ease of the network-reachable crash, not by any data exposure. vuln.today assigns a 'this_week' decision label (VulnCheck-reported), an elevated-but-not-emergency priority; there is no CISA KEV listing and no EPSS score in the input, so there is no evidence of active exploitation or a high predicted exploitation probability - this is a credible, trivially reproducible bug rather than a confirmed in-the-wild campaign. A public proof-of-concept is published in the GHSA advisory (a 4-byte deterministic payload), which lowers the barrier to opportunistic abuse. Net: a genuine priority for anyone actually parsing untrusted HTML through justhtml, but the real-world blast radius is bounded by the product's small deployment footprint, and the absence of KEV/EPSS data means prioritization should rest on whether you run this specific library against attacker-controlled input. One data conflict must be resolved: the source metadata lists 'fixed in 3.17.0' while the GHSA advisory body states 'Fix status: not fixed' and that no release up to 3.16.0 remediates this path - verify fix availability with the vendor before relying on an upgrade. |
| Exploit ScenarioDerived | An attacker submits HTML text or an attribute value containing a non-ASCII Unicode digit in a numeric character reference (e.g. the 4-byte payload &#²;) to any web service that parses or sanitizes user-supplied HTML with justhtml. The parser's decimal digit collector accepts the character via str.isdigit(), but the downstream int(digits, 10) conversion raises an uncaught ValueError, aborting the request handler; repeating the request sustains denial of service. A working proof-of-concept is documented in the GHSA advisory, and with AV:N/AC:L the trigger is remote and reliable on every attempt. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Denial of service in the justhtml HTML parsing library (pip package, all releases through 3.16.0) lets unauthenticated remote attackers abort parsing by submitting HTML that contains a decimal numeric character reference with a non-ASCII Unicode digit, such as &#²;. The four-byte payload is deterministic and works in both text and attribute-value contexts, causing an uncaught ValueError from int() that propagates out of the public JustHTML(...) constructor and stream(...) API, so any service that parses untrusted HTML inline can be forced to fail each malicious request repeatedly. Only availability is affected (no confidentiality or integrity impact), the hexadecimal entity path is not exploitable, a public proof-of-concept payload is documented in the upstream advisory, and the vendor-released fix is version 3.17.0.
RemediationAI
Upgrade justhtml to 3.17.0, the vendor-released fix, which restricts the decimal numeric character reference collector to strict ASCII digits so it agrees with the int(digits, 10) consumer (see GHSA-6cr7-h2q7-28p7 at https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-6cr7-h2q7-28p7). There is no configuration flag that disables the vulnerable decimal entity path, so deployments that cannot upgrade immediately must bound exposure by constraining or pre-filtering untrusted HTML before it reaches justhtml - for example rejecting or normalising input that contains &# followed by non-ASCII characters - accepting the trade-off that such filtering can be bypassed by encoding tricks and may alter legitimate content, and noting that filtering the hexadecimal form &#x...; is unnecessary because that branch uses a strict ASCII character set and was never exploitable. Wrapping parser calls in a try/except ValueError at the application layer limits the blast radius of a single request but does not remove the vulnerability.
Affected VersionsENISA
Affected Packages
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
The flaw is a type-handling mismatch (CWE-241) inside justhtml's entity decoder at src/justhtml/core/entities.py. When the parser sees &#, the decimal collector at line 286 accumulates the digit run using Python's str.isdigit(), which accepts any code point with Unicode Numeric_Type=Digit - superscripts (¹ U+00B9, ² U+00B2, ³ U+00B3), superscript zero (⁰ U+2070) and subscripts (₀-₃ U+2080-U+2083) among them. The collected string is then passed to decode_numeric_entity, which calls int(digits, 10) at line 215; int() with an explicit base only accepts characters for which str.isdecimal() is true, so the non-decimal Unicode digit raises ValueError. The collector and its consumer therefore disagree about what constitutes a digit. The length guard at line 212 only rejects runs longer than 16 characters and the lstrip("0") normalisation at line 211 leaves a single-character payload untouched, so nothing screens the character before conversion. The hexadecimal branch at line 283 uses an explicit ASCII set ("0123456789abcdefABCDEF") and is not affected. No caller of decode_entities_in_text wraps it in a try/except ValueError - the ValueError handlers in src/justhtml/parser/engine.py cover DOM list operations, not entity decoding - so the exception escapes the public constructor (src/justhtml/parser/__init__.py) and the stream API (src/justhtml/parser/stream.py). The defect has existed since the earliest published release, predating the module reorganisation into core/entities.py, and a related isdigit() misuse fixed earlier in the linkification IPv4 path (GHSA-r8cj-3554-33mr, 1.18.0) never touched this decoder.
Know when Justhtml 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote, unauthenticated, no-interaction crash of the parser with a minimal deterministic payload gives AV:N/AC:L/PR:N/UI:N; impact is availability-only (A:H), with no confidentiality or integrity effect and no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
justhtml before 3.17.0 contains a denial of service vulnerability in decode_entities_in_text that allows unauthenticated attackers to crash parsing via non-ASCII Unicode digits in numeric character references. Attackers can submit a payload like &#² in HTML text or attributes, causing an uncaught ValueError from int() that aborts JustHTML() and stream() parsing.
Technical POC Analysis
CWE-241 (Improper Handling of Unexpected Data Type) - a validator and its consumer disagree on the accepted character set.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity denial-of-service vulnerability in the justhtml HTML parsing library (all versions up to 3.16.0) allows unauthenticated attackers to crash any service that processes untrusted HTML by submitting a tiny four-byte payload. Because the flaw triggers an uncaught error that propagates through the public API, every malicious request reliably causes a failure, potentially disrupting customer-facing applications, internal tools, and automated pipelines that rely on justhtml. Leadership should prioritize patching to maintain service availability and prevent operational disruptions.
Apply vendor patch (justhtml 3.17.0). If immediate patching is not possible, implement input validation to reject HTML containing numeric character references with non-ASCII digits, or deploy a web application firewall rule to filter such payloads.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Uncontrolled recursion in the justhtml Python HTML parsing library (all versions through 1.9.1) allows any remote unauth
Sanitizer bypass in the justhtml Python library (versions <= 1.11.0) allows attacker-controlled input to survive as raw
Cross-site scripting via HTML sanitization bypass affects justhtml (a Python HTML parsing/sanitization library by EmilSt
Sanitization bypass in justhtml (a Python HTML/Markdown sanitization library) before 1.15.0 lets attacker-controlled inp
Uncontrolled resource consumption in justhtml before 1.18.0 enables denial-of-service conditions through CPU and memory
Cross-site scripting in justhtml 0.9.0-1.21.0 allows an attacker who can control the text content of HTML code or pre el
Cross-site scripting in justhtml before 3.11.0 allows remote unauthenticated attackers to execute arbitrary JavaScript i
Mutation XSS in justhtml (versions ≤1.11.0) allows injection of arbitrary HTML into serialized output when applications
Mutation XSS (mXSS) in justhtml 1.13.0 and earlier enables markup injection bypass against applications using non-defaul
Cross-site scripting in justhtml versions before 1.13.0 allows attackers who control `<pre>` element content to break ou
Sanitization bypass in justhtml (Python HTML sanitization library) before version 1.17.0 enables cross-site scripting in
EUVD-2026-136797
NVD
CVE.org
EPSS
GitHub
Exploit-DB