@discoveryjs/json-ext is vulnerable to Denial of Service (DoS)
53
Medium Risk
Affected versions of @discoveryjs/json-ext use a chunked JSON parser that can run out of memory when parsing very long arrays (millions of elements) and can crash or misbehave on malformed input such as leading closing brackets or extra tokens after a complete root value. A remote attacker can trigger DoS by supplying crafted chunked JSON (e.g. via a stream or fetch). The patch batches array construction to avoid OOM and adds validation so malformed top-level tokens and extra content after a complete value are rejected with a parse error instead of causing a crash.
You are affected if you are using a version that falls within the vulnerable range.
@discoveryjs/json-ext is vulnerable to Denial of Service (DoS) in versions 0.5.0 - 0.6.3.
Upgrade the @discoveryjs/json-ext 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.

SOC 2Compliant
ISO 27001Compliant