Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. stream-json
  4. ›
  5. CVE-2026-71429

CVE-2026-71429: stream-json: pick/ignore/filter/replace filters are O(depth²) on nested input — small crafted JSON blocks the event loop for seconds→minutes (DoS)

September 3, 2026

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. Because the stack length equals the current nesting depth, and a checkable token is emitted at every level, processing a document of depth D costs O(D²), not O(D).

This is triggered by document structure (nesting depth), not byte volume, so a tiny payload achieves outsized CPU cost, and it is the ordinary “traverse until the filter matches” path — including the exact README flagship example pick({filter: 'data'}). Any service that uses these filters to extract a field from an untrusted (or larger-than-memory) JSON body — the primary documented use case — can be made to block its event loop.

References

  • github.com/advisories/GHSA-528h-pc64-c93x
  • github.com/uhop/stream-json/commit/a869fb98aaef9225556f49901a8f55954ff856e6
  • github.com/uhop/stream-json/security/advisories/GHSA-528h-pc64-c93x
  • nvd.nist.gov/vuln/detail/CVE-2026-71429

Code Behaviors & Features

Detect and mitigate CVE-2026-71429 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.5.0

Fixed versions

  • 3.5.0

Solution

Upgrade to version 3.5.0 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/stream-json/CVE-2026-71429.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 04 Sep 2026 00:24:31 +0000.