Skip to main content

justhtml EUVDEUVD-2026-136797

| CVE-2026-137513 HIGH
Improper Handling of Unexpected Data Type (CWE-241)
2026-11-26 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Send HTML containing &#² numeric entity
  2. Delivery
    Decimal collector accepts non-ASCII Unicode digit
  3. Exploit
    int(digits,10) raises uncaught ValueError
  4. Execution
    Exception propagates out of public API
  5. Impact
    Parser 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

justhtml 0 <3.17.0

Affected Packages

euvd justhtml fix: 3.17.0

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 17:02 EUVD
CVE Published
Nov 26, 2026 - 16:00 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
obscure single-maintainer Python HTML parsing library, minimal enterprise footprint
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 HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-9769 HIGH POC
8.7 Aug 23

Uncontrolled recursion in the justhtml Python HTML parsing library (all versions through 1.9.1) allows any remote unauth

CVE-2026-8445 CRITICAL
9.3 Aug 23

Sanitizer bypass in the justhtml Python library (versions <= 1.11.0) allows attacker-controlled input to survive as raw

CVE-2026-7808 CRITICAL
9.3 Aug 23

Cross-site scripting via HTML sanitization bypass affects justhtml (a Python HTML parsing/sanitization library by EmilSt

CVE-2026-5388 CRITICAL
9.3 Aug 23

Sanitization bypass in justhtml (a Python HTML/Markdown sanitization library) before 1.15.0 lets attacker-controlled inp

CVE-2026-4671 HIGH
8.7 Aug 23

Uncontrolled resource consumption in justhtml before 1.18.0 enables denial-of-service conditions through CPU and memory

CVE-2026-77088 MEDIUM
5.3 Aug 23

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

CVE-2026-74793 MEDIUM
5.1 Aug 23

Cross-site scripting in justhtml before 3.11.0 allows remote unauthenticated attackers to execute arbitrary JavaScript i

CVE-2026-8630 MEDIUM
5.1 Aug 23

Mutation XSS in justhtml (versions ≤1.11.0) allows injection of arbitrary HTML into serialized output when applications

CVE-2026-5751 MEDIUM
5.1 Aug 23

Mutation XSS (mXSS) in justhtml 1.13.0 and earlier enables markup injection bypass against applications using non-defaul

CVE-2026-5389 MEDIUM
5.1 Aug 23

Cross-site scripting in justhtml versions before 1.13.0 allows attackers who control `<pre>` element content to break ou

CVE-2026-6827 MEDIUM
5.1 Aug 23

Sanitization bypass in justhtml (Python HTML sanitization library) before version 1.17.0 enables cross-site scripting in

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