stream-json is vulnerable to Denial of Service (DoS)
62
Medium Risk
FlexAssembler in stream-json compiles a string or RegExp path filter into a matcher that runs keyStack.join(separator) on every container start, with no bound on nesting depth. A JSON document nested to depth D drives D container start joins that each cost O(D), giving O(D^2) CPU on the event loop, and around 96 KB of deeply nested input can stall the process for over a second. The fix adds a maxDepth guard that throws a RangeError past the configured limit and replaces the per container join with incremental path matching.
You are affected if you are using a version that falls within the vulnerable range and you use FlexAssembler with a string or RegExp path filter on object or array rules.
stream-json is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 3.6.0.
Upgrade the stream-json library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.