Node.js Patches Brotli Flaw That Can Enable Remote Code Execution

· Original article ↗

Summary

CVE-2026-111497 is an out-of-bounds write in Node.js’s Brotli decoder. Patched Node.js and Bun versions are available; researchers reported lab code execution, but no in-the-wild exploitation had been reported as of October 22, 2026.

Key points

  • Malformed Brotli input can trigger an out-of-bounds write, potentially causing crashes, memory disclosure or remote code execution.
  • Exposure can occur when apps decompress attacker-controlled Brotli request bodies, fetch Brotli responses from other servers, or pass untrusted input to node:zlib.
  • Fixed Node.js versions are 22.23.4, 24.22.1 and 26.12.1, or newer patches in those release lines; Bun 1.4.4 or newer also includes a fix.
  • Node.js 25.x, 23.x, 20.x and earlier are end of life and will not receive this fix.
  • Researchers reported code execution against an unmodified Node.js 24.22.0 build in lab conditions, though the exploit did not work on every attempt. No in-the-wild exploitation had been reported as of October 22, 2026.
  • Rejecting Brotli-encoded inbound requests or applying available edge rules can reduce some exposure, but upgrading is the only fix described that also addresses vulnerable Brotli responses fetched from other servers.

Article Details

Vulnerability Types
  • Out-of-bounds write
Severity
High
Affected Versions
  • Node.js 22.x versions before 22.23.4
  • Node.js 24.x versions before 24.22.1
  • Node.js 26.x versions before 26.12.1
  • Node.js 25.x, 23.x, 20.x and earlier
  • Bun versions before 1.4.4
Exploitation Status
not_reported
Exploit Availability
public_poc
Patch Status
available
Workarounds
  • Reject incoming Brotli-encoded requests (Content-Encoding: br) at the reverse proxy, load balancer, or application middleware.
  • Use available edge firewall rules to block the attack in inbound requests.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles