Skip to content
.ca
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

Indicators of Compromise1
1cve
Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

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

  1. Reconnaissance: Threat actor identifies a service running a vulnerable Node.js version
  2. Delivery: Crafted Brotli-compressed data sent via HTTP POST, external response, or file upload
  3. Exploitation: Vulnerable decoder mishandles invalid block transition as missing data
  4. Memory Corruption: Out-of-bounds write overflows internal decoder storage buffer
  5. 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)

copy:
CVEProductSeverityDescription
CVE-2026-111497Node.js Brotli decoderHighOut-of-bounds write in Brotli decoder enables DoS, memory exposure, or RCE via crafted compressed data.

Detection Engineering Assessment

Hunting Hypotheses

copy:
HypothesisTelemetryStageFP 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 logsInitial AccessMedium — 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 dataImpactLow — 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
IOCs · 1
.txt.json
Showing defanged values
  • cve
    CVE-2026-111497Out-of-bounds write in Brotli decoder enables DoS, memory exposure, or RCE via crafted compressed data.