An application can have an up-to-date dependency lockfile while still running an affected runtime. Node2Shell is a reason to check the Node.js binary inside the deployed service, including containers and bundled application artifacts.
Node2Shell is the name used by Imperva for CVE-2026-111497, a flaw in the Brotli decoder bundled with Node.js. Node.js published fixes on 21 October 2026. Imperva's original research.
What makes an application exposed?
Node.js rates the issue High. Malformed Brotli data can cause an out-of-bounds write when an application decompresses it through node:zlib. Possible consequences include a process crash, memory disclosure or remote code execution. The affected supported release lines are 22.x, 24.x and 26.x. Node.js security advisory.
The important question is whether attacker-controlled compressed data reaches the decoder. Relevant paths include middleware that inflates incoming Brotli request bodies and application code that consumes Brotli-compressed responses from another server. Simply accepting an HTTP request does not mean a bare Node.js server automatically decodes its body. Imperva's exposure analysis.
Review both directions. An edge rule covering inbound requests does not establish protection for compressed responses fetched by application code.
Fixed Node.js releases
Install a supported release containing the fix, or a later supported security release in that branch:
| Release line | Security release containing the fix |
|---|---|
| 22.x | 22.23.4 |
| 24.x | 24.22.1 |
| 26.x | 26.12.1 |
The version-specific release notes confirm the Brotli fix: Node.js 22.23.4, 24.22.1, and 26.12.1. These are fix baselines, not a claim that they will remain the latest releases. For an older or vendor-maintained runtime, obtain that vendor's supported remediation path.
A demonstrated exploit is not a universal outcome
Imperva reported code execution in its test using the official vulnerable Node.js 24.22.0 Linux arm64 image. Its attempts were not uniformly successful, and the same inputs were rejected by 24.22.1. That is evidence about the tested setup, not proof that every architecture and application has identical exploitability. Research scope and fixed-build comparison.
You do not need to reproduce an exploit against production to justify updating. Determine the deployed runtime, the reachable decoding paths and the appropriate fixed artifact.
Find the runtime that actually runs the service
Start with a read-only version check in the service's own environment:
node -p "JSON.stringify({node: process.version, brotli: process.versions.brotli})"This reports the binary invoked by that command. It does not prove that a background process, a different container or another user's runtime manager uses the same binary. Check the process launch configuration and the deployed image as well.
For each service, record:
- The runtime version and source of its installation.
- The container image or application artifact, where applicable.
- Whether requests or fetched responses can reach Brotli decoding.
- The owner responsible for deploying and verifying the fix.
Update, replace and verify
Update Node.js through the channel that owns the service, then restart or replace the affected application processes. An npm-only update does not replace the runtime carrying the decoder. For containers, check the final image rather than relying only on the base-image tag declared in a build file.
Test ordinary request handling, compressed response paths, background work and health checks after deployment. Temporary restrictions on untrusted Brotli inputs can reduce specific exposure while deployment is prepared; review them with the service owner and treat the runtime update as the remediation. Imperva's mitigation guidance.
RemediForge's host inventory and container image findings can support the investigation. Use host patch jobs where the configured package source supplies the runtime update. For bundled runtimes or containerized services, have the application owner rebuild or replace the artifact and verify the new process. Do not mark a container remediated merely because its host was patched.
Keep the runtime version, deployed artifact and post-change result together. That makes the outcome reviewable and helps prevent an older build from returning in the next rollout.
Technical facts checked against Node.js release notes and Imperva's research on 25 October 2026. Recheck vendor guidance before deployment.