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

CVE-2026-114129: stream-json: FlexAssembler string/RegExp path filters join the full key stack per container start, giving O(depth^2) CPU denial of service

October 22, 2026

FlexAssembler, the custom-container assembler shipped in the stream-json package (src/core/utils/flex-assembler.js, re-exported at stream-json/utils/flex-assembler.js and stream-json/web/utils/flex-assembler.js), compiles a string or RegExp path filter into a matcher that runs keyStack.join(separator) on every container start. Because the key stack grows one entry per open object or array with no depth bound, a JSON document nested to depth D drives D container-start tokens that each perform an O(D) join, for O(D^2) total CPU on the single-threaded event loop. An unauthenticated party who can supply JSON bytes to a pipeline that uses a FlexAssembler with a string or RegExp rule filter can stall the process with a small input: roughly 96 KB (depth 16000) blocks the event loop for over a second, and the cost grows quadratically.

References

  • github.com/advisories/GHSA-jj87-hc4r-jwfw
  • github.com/uhop/stream-json/commit/1929fd80495d45b47e8f8cb1d4e132f915aef012
  • github.com/uhop/stream-json/commit/c06c9a3c02adef89543e26ecebb45837cb284512
  • github.com/uhop/stream-json/releases/tag/3.7.0
  • github.com/uhop/stream-json/security/advisories/GHSA-jj87-hc4r-jwfw
  • nvd.nist.gov/vuln/detail/CVE-2026-114129

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0 before 3.7.0

Fixed versions

  • 3.7.0

Solution

Upgrade to version 3.7.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-114129.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 23 Oct 2026 00:16:32 +0000.