Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-44003 EUVD-2026-30073GHSA-wp5r-2gw5-m7q7

vm2: Transformer Fast-Path Bypass Exposes Internal State Variable

Published May 13, 2026 · Updated May 13, 2026 · Assigned by GitHub_M

Description

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's code transformer has a performance optimization that skips AST analysis when the code does not contain catch, import, or async keywords. This fast-path bypass allows sandboxed code to directly access the internal VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL variable, which exposes internal security functions (handleException, wrapWith, import). This vulnerability is fixed in 3.11.0.

Affected products

VendorProductAffectedFixed
patriksimek vm2 < 3.11.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vm2 < 3.11.0 3.11.0 GHSA-wp5r-2gw5-m7q7

Advisories 1

References