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

Published Sep 18, 2026
·
Updated

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 Software

1 affected component
npm/vm2>=vm2 3.11.8<3.12.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade vm2 to a version that resolves this vulnerability.

    Fixed in 3.12.1
  2. Configuration

    Do not embed 'crypto' in the NodeVM allowlist (i.e., remove crypto from require.builtin); the vulnerability occurs when untrusted guest code can call crypto.setFips() via allowlisted crypto.

    vm2 NodeVM require.builtin allowlist require.builtin = ['crypto'] (do not allowlist 'crypto')

Event History

Sep 18, 2026
CVE Published
via MITRE·01:20 PM
Data Sourced
via MITRE·01:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Only NodeVM deployments that explicitly allowlist the Node.js crypto builtin with require.builtin: ['crypto'] expose crypto.setFips() to untrusted guest code. The issue affects vm2 through version 3.12.0.

2

What does an attacker need to exploit it?

An attacker needs the ability to run untrusted code inside an affected NodeVM where the crypto builtin has been allowlisted. No privileges or user interaction are required.

3

What is the impact on the host process?

Guest code can invoke crypto.setFips() and alter the FIPS mode for the entire host process. Trusted host code subsequently observes the changed mode through crypto.getFips(), so the effect crosses the NodeVM isolation boundary.

4

What can be done if updating is not immediately possible?

Remove crypto from the NodeVM require.builtin allowlist so guest code cannot access the affected builtin. The issue is fixed in vm2 3.12.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203