vm2: Transformer Fast-Path Bypass Exposes Internal State Variable
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in vm2 3.11.0.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| patriksimek | <3.11.0 | ||
| npm: vm2 | <3.11.0, <=3.10.5 | 3.11.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in vm2 (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket