CVE-2026-9769
published high CVSS 4.0 · 8.7justhtml before 1.10.0 Denial of Service via deeply nested HTML
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EmilStenstrom | — | justhtml0 to < 1.10.0 (affected · semver) · 1.10.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
justhtml through 1.9.1 (fixed in 1.10.0) is vulnerable to uncontrolled recursion leading to denial of service. During JustHTML() construction, TreeBuilder.finish() unconditionally calls _populate_selectedcontent(), which recursively traverses the DOM tree via _find_elements()/_find_element() without a depth bound. An attacker who can supply HTML for parsing can provide deeply nested elements (e.g., ~1000 nested <div> tags, roughly 11 KB) to exceed CPython's default recursion limit and trigger an unhandled RecursionError, which may abort parsing, fail requests, or terminate a worker/process depending on the host application's exception handling.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EmilStenstrom | justhtml | 0 to < 1.10.0 (affected · semver)1.10.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-674 Uncontrolled Recursion
References
2- GitHub Security Advisory (GHSA-v7cf-c9rm-wm3j) https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-v7cf-c9rm-wm3j
- VulnCheck Advisory: justhtml before 1.10.0 Denial of Service via deeply nested HTML https://www.vulncheck.com/advisories/justhtml-before-denial-of-service-via-deeply-nested-html
Provider assertions
2VulnCheck · cna
justhtml before 1.10.0 Denial of Service via deeply nested HTML
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 865d1cf779134981cd390ffcf0954b1d24a560105d9677b95038333cb1b531dc
- Ingested
- 23 Sep 2026, 09:41:39 UTC
- Source record
- Official CVE record