Out-of-bounds Write Affecting google/brotli package, versions [,1.0.10)[1.1.0rc,1.1.1)[1.2.0rc1,1.2.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
32.78% (99th percentile)

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-UNMANAGED-GOOGLEBROTLI-21429334
  • 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?

Upgrade google/brotli to version 1.0.10, 1.1.1, 1.2.1 or higher.

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