PT-2026-79778 · Pypi · Justhtml
CVSS v3.1
7.5
High
| Vector | AV: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
Affected Products
Justhtml