What’s Vulnerable › Vulnerabilities
CVE-2026-93604: vm2 3.11.8 Sandbox Escape via crypto.setFips
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-18 · updated 2026-09-18
- Weakness: CWE-284
Description
vm2 through 3.12.0 exposes Node.js's crypto.setFips() function to untrusted guest code when an embedder explicitly allowlists the crypto builtin for a NodeVM (require.builtin: ['crypto']). The builtin sanitizer (sanitizeCryptoModule in lib/builtin.js) replaces crypto.setEngine but leaves crypto.setFips callable, and the readonly wrapper used to expose the host module does not localize side effects of forwarded host functions. Guest code can therefore call crypto.setFips() to change the FIPS mode of the entire host process; the modified mode is subsequently observed by trusted host code (crypto.getFips() changed from 0 to 1 in the reported test), crossing the NodeVM isolation boundary. Fixed in vm2 3.12.1.
Affected products
- patriksimek vm2: before 3.12.1 — fixed in 3.12.1
How to fix
Upgrade to a fixed version: patriksimek vm2 3.12.1. Check the vendor advisory for mitigations.
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-x3v6-43hc-82mc
- https://www.vulncheck.com/advisories/vm2-3.11.8-sandbox-escape-via-crypto-setfips
- https://github.com/patriksimek/vm2/security/advisories/GHSA-x3v6-43hc-82mc
Get alerted when CVE-2026-93604 or the next vulnerability affects your stack