CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →
← Back to Daily brief 2026-05-20
NOTABLECVE-2026-24118 +20updatedNATOA2vulnerability

vm2 Node.js sandbox: two waves of critical sandbox escapes in May 2026, fixed in 3.11.2 and then 3.11.4

vm2 sandbox escapes let untrusted JavaScript run code on the host; the May 2026 flaws are all fixed only in 3.11.4

Analysis

The Hacker News reported on 2026-05-07 a dozen critical vulnerabilities in vm2, the Node.js library that runs untrusted JavaScript in a sandbox by intercepting and proxying objects, which let an attacker break out and execute arbitrary code on the host; fixes landed across versions 3.10.5 to 3.11.2, and users were told to update to 3.11.2 (The Hacker News, 2026-05-07). Among them, CVE-2026-43997 (CVSS 10.0) obtains the host Object despite earlier protections (vm2 GHSA-47x8-96vw-5wg6), CVE-2026-44006 (10.0) reaches BaseHandler.getPrototypeOf to get arbitrary prototypes (vm2 GHSA-qcp4-v2jj-fjx8), and CVE-2026-43999 (9.9) bypasses NodeVM's builtin allowlist whenever the module builtin is allowed, including through the '*' wildcard, so sandboxed code can load excluded builtins such as child_process (vm2 GHSA-947f-4v7f-x2v8); CVE-2026-44008 escapes through neutralizeArraySpeciesBatch() and CVE-2026-44009 through a null-proto exception, both 9.8 and fixed in 3.11.2 (The Hacker News, 2026-05-07). On 2026-05-18 the maintainer published a second set of advisories affecting 3.11.3 and earlier and fixed in 3.11.4 (vm2 GHSA-v6mx-mf47-r5wg), covered by BSI's WID-SEC-2026-1583 with CVE-2026-47131, CVE-2026-47135, CVE-2026-47137, CVE-2026-47139, CVE-2026-47140, CVE-2026-47141, CVE-2026-47208, CVE-2026-47209 and CVE-2026-47210; BSI says a remote, anonymous attacker can use them to execute arbitrary code, bypass security measures and disclose confidential information (BSI WID-SEC-2026-1583). Kodem Security describes the wave as vulnerability research rather than campaign reporting (Kodem Security, 2026-05-14).

Triage: the discriminator is whether the Node.js runtime is expected to start shells at all: Kodem's indicator is a shell parented to a runtime that should not invoke one, or a child_process call traced to a sandboxed context (Kodem Security, 2026-05-14).

Cited evidence

A dozen critical security vulnerabilities have been disclosed in the vm2 Node.js library that could be exploited by bad actors to break out of the sandbox and execute arbitrary code on susceptible systems.

The Hacker News 2026-05-07

NodeVM's builtin allowlist can be bypassed when the module builtin is allowed (including via the '*' wildcard).

vm2 (GHSA-947f-4v7f-x2v8)

Untrusted JavaScript reaches vm2. In AI agent environments, the source is often LLM output produced in response to a manipulated prompt.

Kodem Security 2026-05-14

Updates1

Correction

The twelve critical vm2 CVEs were reported on 2026-05-07, with 3.11.2 as the version to update to (The Hacker News, 2026-05-07); BSI's WID-SEC-2026-1583 of 2026-05-18 covers a later, different set, CVE-2026-47131 and eight others, fixed in 3.11.4 (BSI WID-SEC-2026-1583). CVE-2026-43999 bypasses NodeVM's builtin allowlist when the module builtin is allowed, not when child_process is (vm2 GHSA-947f-4v7f-x2v8); CVE-2026-43997 obtains the host Object (vm2 GHSA-47x8-96vw-5wg6) while BaseHandler.getPrototypeOf is CVE-2026-44006 (vm2 GHSA-qcp4-v2jj-fjx8); and CVE-2026-44008 and CVE-2026-44009 are separate escapes, through neutralizeArraySpeciesBatch() and through a null-proto exception (The Hacker News, 2026-05-07). Kodem Security attributes the prompt-to-host-execution framing to Microsoft Security Research and gives no quoted chain (Kodem Security, 2026-05-14).

Sources7

Revision history

  1. Published 2026-05-20-a0f7b07f
  2. Correction 2026-10-21T1148Z-audit

    The twelve critical vm2 CVEs were reported on 2026-05-07 and fixed by 3.11.2, while BSI's WID-SEC-2026-1583 of 2026-05-18 covers a later set, CVE-2026-47131 and eight others, fixed in 3.11.4. CVE-2026-43999, CVE-2026-43997, CVE-2026-44008 and CVE-2026-44009 are described as their advisories describe them, and Kodem's framing is attributed to Microsoft without an invented quote.

    Changed: affected_products body classification cves event_date evidence headline sectors sources sourcing_note summary techniques title verification

PROVENANCE

AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.