CVE Catalog

CVE-2026-93604

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

Summary

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. The sanitizer leaves crypto.setFips callable, allowing guest code to change the FIPS mode of the entire host process, crossing the NodeVM isolation boundary. Fixed in vm2 3.12.1.

Risk Assessment

Guest code can alter the host process's global FIPS mode, potentially leading to unexpected cryptographic behavior and isolation breach, possibly weakening application security.

Recommendation

Update vm2 to version 3.12.1 or later; if not possible, avoid allowlisting the crypto builtin for untrusted code.

Other vulnerabilities in vm2

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS