Skip to main content
EPSS 0.5%top 60%

CVE-2026-9769: Uncontrolled Recursion in EmilStenstrom justhtml

0
High
VulnerabilityCVE-2026-9769cvecve-2026-9769
Published: 08/23/2026 (08/23/2026, 13:34:15 UTC)
Source: CVE Database V5
Vendor/Project: EmilStenstrom
Product: justhtml

Description

justhtml versions prior to 1.10.0 contain an uncontrolled recursion vulnerability that can lead to denial of service. The issue arises during the construction of JustHTML() where TreeBuilder.finish() calls _populate_selectedcontent(), which recursively traverses the DOM tree without limiting recursion depth. An attacker supplying deeply nested HTML elements can exceed Python's recursion limit, causing a RecursionError that may abort parsing or terminate processes depending on exception handling.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

EmilStenstrom

justhtml

Affected versions
>=0 <1.10.0
justhtml
pkg:pypi/justhtml
Affected versions
<1.10.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 12:52:32 UTC

Technical Analysis

CVE-2026-9769 affects justhtml through version 1.9.1 and is fixed in 1.10.0. The vulnerability is due to uncontrolled recursion in the TreeBuilder.finish() method, which calls _populate_selectedcontent() that recursively traverses the DOM tree without a depth bound. By providing deeply nested HTML (e.g., ~1000 nested <div> tags), an attacker can trigger a RecursionError in CPython, potentially causing denial of service by aborting parsing or terminating worker processes depending on the host application's handling of exceptions.

Potential Impact

An attacker able to supply HTML for parsing can cause denial of service by triggering a RecursionError due to excessive recursion depth. This may result in aborted parsing, failed requests, or termination of worker processes, impacting availability of the affected application.

Mitigation Recommendations

A fix is available in justhtml version 1.10.0. Users should upgrade to version 1.10.0 or later to remediate this vulnerability. No other mitigation guidance is provided.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-05-27T20:38:38.588Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a8afb29acd9273b49f5f751

Added to database: 08/23/2026, 13:52:41 UTC

Last enriched: 09/10/2026, 12:52:32 UTC

Last updated: 10/06/2026, 06:48:21 UTC

Views: 77

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses