Exposure of Resource to Wrong Sphere Affecting vm2 package, versions >=3.11.3 <3.11.7


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.47% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-VM2-20043639
  • published22 Sept 2026
  • disclosed17 Sept 2026
  • creditForrof

Introduced: 17 Sep 2026

NewCVE-2026-92940  (opens in a new tab)
CWE-668  (opens in a new tab)

How to fix?

Upgrade vm2 to version 3.11.7 or higher.

Overview

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules.

Affected versions of this package are vulnerable to Exposure of Resource to Wrong Sphere in the globalAgent process. An attacker can access sensitive HTTPS credentials and intercept or manipulate authenticated requests by registering a listener on the agent's 'free' event, allowing them to read the host's Authorization header, destination host/port, and plaintext response bodies, as well as issue attacker-controlled requests using stolen credentials. This is only exploitable if the NodeVM is explicitly configured to allow require('https').

CVSS Base Scores

version 4.0
version 3.1