3 minhigh
Node2Shell: Taking Over a Server with a Single Compressed Data File (CVE-2026-111497)
CVE-2026-111497 enables out-of-bounds writes in Node.js's Brotli decoder via crafted compressed data, leading to DoS, memory exposure, or RCE on affected servers. The vulnerability exists in the Brotli block transition mechanism, which fails to validate inconsistent compressed data. Attackers deliver malicious Brotli payloads through HTTP request bodies, external server responses, or file processing paths. Fixed in Node.js 22.23.4, 24.22.1, and 26.12.1.
Sens:■ ImmediateConf:highAnalyzed:2026-11-05Z.ai
Authors: ATCP
ActorsNode2Shell
Source:AhnLab ASEC
Detection / HunterZ.ai
Immediate Actions
- Update Node.js to 22.23.4, 24.22.1, or 26.12.1 or later
- Block Brotli-compressed requests via WAF or reverse proxy if patching is delayed
- Verify running Node.js executable version, not just installed package
- Restart all Node.js processes after applying the update
Key Takeaways
- CVSS v4.0 score of 9.2 assigned by Google; Node.js rates severity High
- Imperva Red Team named the vulnerability Node2Shell
- Patches released October 21, 2026 across three Node.js branches
- Three attack entry points: HTTP POST bodies, external server responses, direct file processing
- Brotli decoder may be invoked without explicit application-level Brotli usage
Attack Chain
- Reconnaissance: Threat actor identifies a service running a vulnerable Node.js version
- Delivery: Crafted Brotli-compressed data sent via HTTP POST, external response, or file upload
- Exploitation: Vulnerable decoder mishandles invalid block transition as missing data
- Memory Corruption: Out-of-bounds write overflows internal decoder storage buffer
- Impact: Service disruption, memory information exposure, or remote code execution
Affected Systems
- Node.js 22.x versions below 22.23.4
- Node.js 24.x versions below 24.22.1
- Node.js 26.x versions below 26.12.1
- Node.js applications decompressing Brotli data from external sources
Vulnerabilities (CVEs)
| CVE | Product | Severity | Description |
|---|---|---|---|
| CVE-2026-111497 | Node.js Brotli decoder | High | Out-of-bounds write in Brotli decoder enables DoS, memory exposure, or RCE via crafted compressed data. |
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Node.js process crashes or memory errors following Brotli-compressed HTTP request bodies indicate CVE-2026-111497 exploitation attempts (T1190). | Web server logs and Node.js process error logs | Initial Access | Medium — legitimate malformed Brotli data may crash |
| HTTP requests with Content-Encoding: br triggering unexpected Node.js worker restarts suggest exploitation of Brotli decoder vulnerability (T1499.004). | WAF logs and process monitoring data | Impact | Low — restarts tied to specific encoding are unusual |
Required Log Sources
- Web server access logs
- Node.js process error logs
- WAF or reverse proxy logs
- Application performance monitoring data
Control Gaps
- WAFs may not decompress and inspect Brotli-compressed payloads
- Standard input validation does not detect malformed compression data
- Process crash correlation with specific requests requires custom logging
- Container images may bundle vulnerable Node.js versions without patching
Recommendations
Infrastructure Hardening
- Restrict external server responses to authorized endpoints only
- Audit all code paths that invoke Brotli decompression in applications
- Ensure container images and deployment packages use patched Node.js versions
- Monitor Node.js process restarts and memory errors for correlation with requests
User Protection
- Validate Content-Encoding headers before processing compressed payloads
- Isolate Node.js processes handling untrusted compressed data
- Implement rate limiting on endpoints accepting Brotli-compressed payloads
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping2 techniques
Tactic
Initial Access
Tactic
Impact
Showing defanged values
- cveCVE-2026-111497Out-of-bounds write in Brotli decoder enables DoS, memory exposure, or RCE via crafted compressed data.