Vulnerability library
Security checkOctober 22, 2026

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

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

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.

Recommendation

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

  • Affected version(s): >= 2.0.0, <= 3.6.0
  • Patched version(s): 3.7.0

References

Could your website be exposed too?

SmartScanner can check your website for stream-json: FlexAssembler string/RegExp path filters join the full key stack per container start, giving O(depth^2) CPU and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 22, 2026