漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
stream-json: pick/ignore/filter/replace filters are O(depth²) on nested input — small crafted JSON blocks the event loop for seconds→minutes (DoS)
Vulnerability Description
stream-json is a micro-library of stream components for processing JSON and JSONC with a minimal memory footprint. Prior to 3.5.0, the path filters pick, ignore, filter, and replace in src/core/filters/filter-base.js recompute the full path string from the nesting stack for every checkable token. Because the stack length equals the current nesting depth and a checkable token is emitted at every level, a depth D document costs O(D²) rather than O(D) to process. The issue is triggered by nesting depth rather than byte volume, including the documented pick({filter: 'data'}) traversal-until-match path, so an application that sends untrusted JSON through a string or RegExp filter can block the Node.js event loop and cause denial of service with a small deeply nested document. The streamArray, streamObject, and streamValues streamers are not affected because they use the constant-time asm.depth getter. This issue is fixed in version 3.5.0.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
算法复杂性
Vulnerability Title
uhop stream-json 资源管理错误漏洞
Vulnerability Description
uhop stream-json是uhop个人开发者的一个处理JSON数据流的组件。 uhop stream-json 3.5.0之前版本存在资源管理错误漏洞,该漏洞源于src/core/filters/filter-base.js中的路径过滤器pick、ignore、filter和replace在处理每个可检查令牌时重新计算完整路径字符串,导致深度嵌套JSON文档处理复杂度由O(D)变为O(D²),可能阻塞Node.js事件循环,造成拒绝服务。
CVSS Information
N/A
Vulnerability Type
N/A