stream-json is vulnerable to Prototype Pollution
51
Medium Risk
The Assembler component rebuilds JavaScript objects from the parsed token stream and assigns each key with this.current[this.key] = value. When parsed input contains a __proto__ key, this assignment invokes the inherited prototype setter and replaces the object's prototype with parsed content instead of creating an own property. Code that later reads properties through the prototype chain can then observe injected values, unlike native JSON.parse(). The fix defines __proto__ as an own data property so parsed keys never mutate the prototype.
You are affected if you are using a version that falls within the vulnerable range and you assemble untrusted JSON into objects with the Assembler or flex-assembler.
stream-json is vulnerable to Prototype Pollution in versions 0.0.1 - 3.5.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.