Critical Vulnerability in Node.js Brotli Decoder Allows Remote Code ExecutionBrief · digest for October 23
Brief≈ 1 min

Critical Vulnerability in Node.js Brotli Decoder Allows Remote Code Execution

A critical memory-corruption vulnerability, CVE-2026-111497 (codenamed "Node2Shell"), has been discovered in the native Brotli stream decompression library (node:zlib module) for Node.js. A buffer overflow flaw allows an unauthenticated attacker to achieve remote code execution (RCE) with the privileges of the Node.js process or trigger a denial of service.

The vulnerability affects all active release lines of the platform. The primary attack vectors are incoming compressed HTTP requests with a Content-Encoding: br header hitting Express or Fastify servers, as well as outbound calls via native fetch(), which automatically decompresses responses from remote hosts.

The Node.js security team released emergency patches on October 21, 2026. To stay protected, update immediately to the minimum patched versions:

  • Node.js 22.x branch — 22.23.4 (or later);
  • Node.js 24.x branch — 24.22.1 (or later);
  • Node.js 26.x branch — 26.12.1 (or later).

If restarting containers immediately isn't feasible, you can apply a temporary mitigation by forcing decompression or blocking Brotli-compressed traffic at your external Nginx or Envoy reverse proxy layer.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2