Skip to main content

Critical Node.js Remote Code Execution Vulnerability (Node2Shell) CVE-2026-111497

BACKGROUND

A critical security vulnerability, identified as CVE-2026-111497 and commonly referred to as
Node2Shell, has been discovered in the Brotli decompression component used by Node.js.
The vulnerability arises from an out-of-bound write condition in the Brotli decoder, which can be
triggered when an affected application processes specially crafted Brotli-compressed data.
Successful exploitation may result in memory corruption, potentially allowing an attacker to
execute arbitrary code remotely. 

The vulnerability affects multiple supported Node.js versions and poses a significant security risk
to applications that process untrusted compressed data. Security updates were released on 21
October 2026 to address the vulnerability, requiring a full upgrade of the Node.js runtime itself.

IMPACT

Successful exploitation of these vulnerabilities could result in:

  • Attackers can run malicious code on the server.
  • Sensitive data stored in the application's memory can be leaked.
  • Malicious data may crash the application and disrupt services.
  • Attackers can gain unauthorized access and control within the application's privileges.
     

AFFECTED PRODUCTS

 Affected VersionFixed Version
1Node.js 22.x prior to 22.23.422.23.4 or later
2Node.js 24.x prior to 24.22.124.22.1 or later
3Node.js 26.x prior to 26.12.126.12.1 or later

 

RECOMMENDATION

  • Upgrade affected Node.js installations to the latest patched versions. Migrate
    unsupported end-of-life versions to a supported release line immediately.
  • Identify vulnerable systems by conducting assessment of servers, web applications,
    APIs, and container environments. Verify the active runtime using the 'node --version'
    command.
  • Restrict Brotli Decompression. If immediate patching is not possible, temporarily disable
    Brotli decompression for untrusted compressed requests where it is not required. For
    applications using body-parser, configure ‘inflate: false’ to reject compressed request
    bodies instead of decompressing them, thereby reducing the risk of exploitation.
  • Enhance Security Monitoring by continuously auditing application logs for unexpected
    process crashes, anomalous payloads, or suspicious activity indicating exploitation
    attempts.
  • Deploy Defensive Controls such as Web Application Firewall (WAF) rules to filter traffic,
    enforce network segmentation, and restrict application privileges to minimize the attack
    surface.
  • Audit Vendor Ecosystems to assess third-party applications, libraries, and managed
    services incorporating the affected Brotli decoder, and apply corresponding vendor
    security patches as they become available.
  • Validate Mitigation by restarting or redeploying all updated services, ensuring patched
    runtime versions are successfully active across production environments.

REFERENCES

https://brandefense.io/blog/node2shell-nodejs-brotli-rce-cve-2026-111497/

https://nodejs.org/en/blog/vulnerability/october-2026-security-releases

https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-154/

https://www.akamai.com/blog/security-research/inside-node2shell-closer-look-cve-
2026-111497

About

Brunei Computer Emergency Response Team (BruCERT) was established in 2004 as the national and government CERT to deal with computer-related and internet-related security incidents in Negara Brunei Darussalam.