Live threats

All CVEs / patriksimek

CVE-2026-92940patriksimek vm2

HTTPS Credential Exposure in vm2 via globalAgent

Critical 10.0 No auth needed

Priority
75
CVSS 4.0
10.0
EPSS
—
Auth required
No
Published
Sep 17, 2026
Updated
Sep 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-668
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

vm2 versions 3.11.3 through 3.11.6 expose the host process's HTTPS agent to sandboxed code when NodeVM is configured to allow require('https'). An attacker can register listeners on the agent to intercept pooled connections, stealing authorization headers, credentials, and plaintext HTTPS response data from the host, as well as issuing forged authenticated requests.

Show the original NVD text

vm2 versions 3.11.3 through 3.11.6 expose the host process's real https.globalAgent to sandboxed code when a NodeVM is explicitly configured to allow require('https'). The builtin loader wraps host modules in a read-only proxy, but method calls such as Agent.prototype.on() are forwarded to the underlying host object, so sandbox code can register a listener for the agent's 'free' event. When an unrelated host HTTPS request releases a pooled connection, the listener receives the live host request options and the host TLSSocket, allowing sandboxed code to read the host's Authorization header and private destination host/port, attach a data listener to the released socket and read subsequent host response bodies in plaintext, and issue attacker-chosen authenticated requests using the stolen credentials. The issue is fixed in 3.11.7.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 3.11.7

Update vm2 to version 3.11.7 or later to patch the credential exposure vulnerability.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for vm2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vm2 ≥ 3.11.3 < 3.11.7 3.11.7 npm install vm2@3.11.7

Per OSV / GitHub Advisories (GHSA-h85j-hv3c-qfgq). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.