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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 Exploit, Mitigation, Vendor Advisory
- https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.8 · vm2_projectNVD modified 2026-10-26 17:10
Affected (CPE criteria) 1
cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*
References 2
- https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 Exploit, Mitigation, Vendor Advisory
- https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 Exploit, Mitigation, Vendor Advisory