Out-of-bounds Write Affecting nodejs package, versions [22.20.0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-NODEJS-21427859
  • published22 Oct 2026
  • disclosed21 Oct 2026
  • creditmcollina

Introduced: 21 Oct 2026

NewCVE-2026-111497  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via block-switch handling in the Brotli decoder, specifically DecodeBlockTypeAndLength in deps/brotli/c/dec/decode.c. An attacker can execute arbitrary code by supplying a crafted Brotli-compressed stream with an invalid block switch to Node.js code that decodes it; the decoder fails to propagate the block-switch error during command processing, allowing the out-of-bounds write.

Notes

  • At a literal, command, or distance block-switch, the vulnerable path is reached when that stream’s block-type count is at most one (max_block_type <= 1); the decoder’s boolean failure is then discarded by the unsafe switch path, which continues processing.

CVSS Base Scores

version 4.0
version 3.1