CVE-2026-100721: vm2 Critical Authorization Bypass Vulnerability

vm2 Updated 06 Oct 2026

Summary

05/10/2026
Yes i
Critical
10.0

CVE-2026-100721: vm2: NodeVM custom resolution bypasses external path boundaries. Affects vm2 versions < 3.12.2. Fixed in 3.12.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

vm2 is a popular Node.js library that provides a sandboxed environment for executing untrusted JavaScript code. It allows developers to run potentially unsafe code in a controlled manner, isolating it from the host environment. This is particularly useful for applications that need to execute user-generated scripts while maintaining security. However, a critical vulnerability has been identified in version 3.11.8, which could allow an attacker to bypass security measures and execute unauthorized code in the host context.

Vulnerability Detail

The vulnerability arises from a flaw in the custom module resolution process within the NodeVM environment of vm2. An untrusted guest can exploit this flaw to gain access to files that share a common prefix with allowlisted modules, effectively bypassing the intended security boundaries. This can lead to unauthorized code execution in the host environment, compromising the confidentiality, integrity, and availability of the system. The vulnerability is classified as CWE-863 (Incorrect Authorization) and has a CVSS score of 10.0, indicating a critical severity level.

How To Fix

Latest published version: 3.12.2 as of 22 Oct 2026

npm install vm2@3.12.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider implementing a custom resolver that strictly checks for exact matches or requires a path separator before allowing access to any sibling modules. Here is an example of a custom resolver function:

const customResolver = (moduleName) => {
    if (moduleName === 'foo') {
        return '/path/to/foo'; // Allowlisted module
    }
    return undefined; // Deny access to other modules
};

Conclusion

The vm2 package has a critical vulnerability that allows for authorization bypass, potentially leading to unauthorized code execution in the host environment. It is crucial for developers using this package to update to the latest version to mitigate the risk. Implementing strict custom resolvers can also help in managing security until an update can be applied.

See every vulnerability recorded for vm2 →

Share this vulnerability

FAQ

The vulnerability allows unauthorized code execution in the host environment, which can lead to data breaches and system compromise.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

The vulnerability affects vm2 version 3.11.8. It is recommended to upgrade to version 3.12.2 or later.

Yes, you can implement a custom resolver that restricts access to modules based on strict path checks.

Consider reviewing your application's use of vm2 and applying stricter security measures until you can update to the patched version.

Related vulnerabilities

Recent vulnerabilities recorded for vm2.

How To Fix

Latest published version: 3.12.2 as of 22 Oct 2026

npm install vm2@3.12.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback