Live threats

All CVEs / patriksimek

CVE-2026-92957patriksimek vm2

Policy bypass in vm2 via node: prefix normalization

Critical 9.4

Priority
56
CVSS 4.0
9.4
EPSS
—
Auth required
Yes
Published
Sep 17, 2026
Updated
Sep 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-269
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

vm2 through 3.11.6 fails to normalize `node:`-prefixed builtin specifiers in NodeVM deny policies, allowing sandboxed code to access restricted modules like `child_process`. An authenticated attacker can bypass require restrictions and execute host commands via APIs such as execSync or spawn.

Show the original NVD text

vm2 through 3.11.6 does not normalize `node:`-prefixed builtin specifiers when evaluating user-supplied negative (deny) entries in a NodeVM wildcard require policy. Although NodeVM strips the `node:` prefix during require() resolution, negative wildcard entries are matched by exact string comparison against the canonical builtin names, so a policy such as `new NodeVM({ require: { builtin: ['*', '-node:child_process'] } })` fails to deny the canonical `child_process` module. Sandboxed code can therefore obtain the host `child_process` builtin via `require('child_process')` or `require('node:child_process')`, gaining references to process-spawning APIs such as execSync and spawn, which is equivalent to host command-execution capability for untrusted sandbox code. Fixed in vm2 3.11.7.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 3.11.7

Update vm2 to version 3.11.7 or later to properly normalize node:-prefixed builtin specifiers in deny policies.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for vm2.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vm2 < 3.11.7 3.11.7 npm install vm2@3.11.7

Per OSV / GitHub Advisories (GHSA-8686-vhfx-7r3j). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.