# Node2Shell: Node.js Brotli vulnerability allows remote code execution (CVE-2026-111497)

DevFeed: [Node2Shell: Node.js Brotli vulnerability allows remote code execution (CVE-2026-111497)](<https://devfeed.tech/articles/node2shell-node-js-brotli-vulnerability-allows-remote-code-execution-cve-2026-111497-96327.md>)

Original publisher: [Read original article](<https://www.aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497>)

Author: Sooraj Shah

Published: 2026-10-22T18:11:00Z

Content type: article

Language: en

Sources: [Aikido Security's Blog](<https://devfeed.tech/sources/aikido-security-s-blog.md>)

Topics: [code security](<https://devfeed.tech/topics/code-security.md>), [cve remediation](<https://devfeed.tech/topics/cve-remediation.md>), [Luvit](<https://devfeed.tech/topics/luvit.md>), [trivy](<https://devfeed.tech/topics/trivy.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [cve](<https://devfeed.tech/tags/cve.md>), [js](<https://devfeed.tech/tags/js.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [remote](<https://devfeed.tech/tags/remote.md>), [remote-code-execution](<https://devfeed.tech/tags/remote-code-execution.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

Node.js CVE-2026-111497 is an out-of-bounds write in its Brotli decoder that can cause crashes, memory disclosure, or potentially remote code execution when an app decompresses attacker-controlled data. Exposure includes Brotli request bodies parsed by Express 5 or body-parser 2.x, Brotli responses automatically decompressed by `fetch()`, and untrusted input passed to `node:zlib`; a bare Node.js HTTP server does not decode Brotli request bodies automatically. Upgrade Node.js to 22.23.4, 24.22.1, or 26.12.1 (or a later patch in that line); Bun users need 1.4.4 or later. Rebuild pinned container images. End-of-life Node.js lines will not receive the fix. Distribution-packaged Node.js may rely on the system Brotli package, so check its security advisory. If an upgrade is delayed, blocking Brotli-encoded inbound requests or using available edge rules reduces inbound exposure, but neither covers fetched Brotli responses. The excerpt reports no exploitation in the wild as of October 22, 2026, while researchers had demonstrated code execution in lab conditions.

## Source excerpt

Node.js CVE-2026-111497 (Node2Shell) is a Brotli flaw that can allow remote code execution. See who is affected, patched versions and the fix. Category: Vulnerabilities & Threats