PT-2026-79778 · Pypi · Justhtml

·

CVE-2026-9769

·

Published

2026-03-17

·

Updated

2026-09-10

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions justhtml versions prior to 1.10.0
Description Uncontrolled recursion occurs during the construction of JustHTML(), where the TreeBuilder.finish() function calls populate selectedcontent(). This process recursively traverses the DOM tree using find elements() and find element() without a depth limit. An attacker providing specially crafted HTML with deeply nested elements can exceed the CPython default recursion limit, triggering a RecursionError. This can lead to a denial of service by aborting parsing, failing requests, or terminating the worker process.
Recommendations Update justhtml to version 1.10.0.

Exploit

Fix

DoS

Uncontrolled Recursion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-9769
GHSA-892M-GCQ8-2468
GHSA-V7CF-C9RM-WM3J
PYSEC-2026-3854

Affected Products

Justhtml