Vulnerability library
Security checkSeptember 03, 2026

stream-json: pick/ignore/filter/replace filters are O(depth²) on nested input — small crafted JSON blocks the event loop

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmstream-json

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The path filters pick, ignore, filter, and replace — the library’s headline “surgical extraction” feature — recompute the full path string from the nesting stack on every checkable token.

Recommendation

Update the stream-json package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 3.4.0
  • Patched version(s): 3.5.0

References

Could your website be exposed too?

SmartScanner can check your website for stream-json: pick/ignore/filter/replace filters are O(depth²) on nested input — small crafted JSON blocks the event loop and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 03, 2026