漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
justhtml before 1.10.0 Denial of Service via deeply nested HTML
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
未经控制的递归
Vulnerability Title
EmilStenstrom JustHTML 资源管理错误漏洞
Vulnerability Description
EmilStenstrom JustHTML是EmilStenstrom个人开发者开源的一个纯 Python HTML5 解析器。 EmilStenstrom JustHTML 1.9.1及之前版本存在资源管理错误漏洞,该漏洞源于TreeBuilder.finish()无条件调用_populate_selectedcontent(),递归遍历DOM树时没有深度限制,可能导致攻击者通过提供深度嵌套元素触发未处理的RecursionError,造成拒绝服务。
CVSS Information
N/A
Vulnerability Type
N/A