CVE-2026-100721: Vulnerability in vm2

Critical. vm2 before 3.12.2 contains an authorization bypass in the NodeVM external-module resolver. When an embedder configures require.external with a custom resolver (and context: 'host'), LegacyResolver.customResolve in lib/resolver-compat.js records the resolved module directory in this.externals as new RegExp('^' + escapeRegExp(resolvedPath)), without requiring a path separator or end-of-string boundary. Untrusted...

npm, CWE-863

Exploitation
None confirmed
Severity
9 of 10
Attack likelihood
0.6 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-5h3f-q97h-ccvc
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-863
Published
27 Sept 2026
Last change
5 Oct 2026
Likelihood rank
Higher than 50 % of all rated vulnerabilities
Analysis status
Deferred
Ecosystem
npm

Affected packages

Vulnerable version ranges and fixed releases

  • vm2 npm, Affected through 3.12.1. Fixed in 3.12.2

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes