Intel

AIKIDO-2026-799102

bun is vulnerable to Out-of-bounds Write

CVE-2026-111497Published Oct 22, 2026
October 22, 2026

95

CVE Score

Critical

Out-of-bounds Write

Are you affected? Scan for Free

TL;DR

fetch decompresses a response with Content-Encoding: br with the bundled Brotli decoder, and node:zlib and DecompressionStream use that same decoder. A block type switch in a stream that declares only one block type fails its length check, and the failure is ignored, so decoding writes past the output buffer and can crash the process or lead to code execution. The fix returns BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH and stops decoding.

How do I fix this?

Upgrade the bun library to the patch version, including packages prefixed with @oven/bun, such as @oven/bun-darwin-aarch64.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the application decompresses Brotli data.

Package

Versions

1.0.22 - 1.4.3

Fixed in 1.4.4

Background info

bun is vulnerable to Out-of-bounds Write in versions 1.0.22 - 1.4.3.

Links

Other

bun.com/blog/bun-v1.4.4
https://bun.com/blog/bun-v1.4.4
nodejs.org/en/blog/vulnerability/october-2026-security-releases#nodejs-brotli-decoder-out-of-bounds-write-permits-remote-code-execution-cve-2026-111497---high
https://nodejs.org/en/blog/vulnerability/october-2026-security-releases#nodejs-brotli-decoder-out-of-bounds-write-permits-remote-code-execution-cve-2026-111497---high
openwall.com/lists/oss-security/2026/10/23/25
http://www.openwall.com/lists/oss-security/2026/10/23/25
openwall.com/lists/oss-security/2026/10/24/6
http://www.openwall.com/lists/oss-security/2026/10/24/6
openwall.com/lists/oss-security/2026/10/26/12
http://www.openwall.com/lists/oss-security/2026/10/26/12
openwall.com/lists/oss-security/2026/10/26/13
http://www.openwall.com/lists/oss-security/2026/10/26/13
openwall.com/lists/oss-security/2026/10/26/16
http://www.openwall.com/lists/oss-security/2026/10/26/16
openwall.com/lists/oss-security/2026/11/03/2
http://www.openwall.com/lists/oss-security/2026/11/03/2
broccoli2shell.com
https://broccoli2shell.com
lists.debian.org/debian-lts-announce/2026/10/msg00049.html
https://lists.debian.org/debian-lts-announce/2026/10/msg00049.html
patchtheplanet.org/brotli
https://patchtheplanet.org/brotli
aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497
https://www.aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497
cert-portal.siemens.com/productcert/html/ssa-045512.html
https://cert-portal.siemens.com/productcert/html/ssa-045512.html
cert-portal.siemens.com/productcert/html/ssa-242944.html
https://cert-portal.siemens.com/productcert/html/ssa-242944.html
cert-portal.siemens.com/productcert/html/ssa-443410.html
https://cert-portal.siemens.com/productcert/html/ssa-443410.html
cert-portal.siemens.com/productcert/html/ssa-678870.html
https://cert-portal.siemens.com/productcert/html/ssa-678870.html
cert-portal.siemens.com/productcert/html/ssa-898633.html
https://cert-portal.siemens.com/productcert/html/ssa-898633.html
ellio.tech/en/blog/node2shell-cve-2026-111497-rce-on-stock-nodejs-builds/
https://ellio.tech/en/blog/node2shell-cve-2026-111497-rce-on-stock-nodejs-builds/
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-111497
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-111497

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea