Intel

AIKIDO-2026-130946

stream-json is vulnerable to Prototype Pollution

Prototype PollutionGHSA-mjw6-4jj6-33hc Published Yesterday

51

Medium Risk

This Affects:

JSstream-json
0.0.1 - 3.5.0
Fixed in 3.6.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

stream-json is vulnerable to Prototype Pollution in versions 0.0.1 - 3.5.0.

How to fix this

Upgrade the stream-json library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform