Live threats

All CVEs / Vm2 Project

CVE-2019-10761Vm2 Project Vm2

High 8.3 No auth needed

Priority
65
CVSS 3.1
8.3
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Jul 13, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-674
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

What happens

This affects the package vm2 before 3.6.11. It is possible to trigger a RangeError exception from the host rather than the "sandboxed" context by reaching the stack call limit with an infinite recursion. The returned object is then used to reference the mainModule property of the host code running the script allowing it to spawn a child_process and execute arbitrary code.

Original NVD text.

What to do

  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.6.11 3.6.11 npm install vm2@3.6.11

Per OSV / GitHub Advisories (GHSA-wf5x-cr3r-xr77). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vm2_projectvm2< 3.6.11

Official sources

References

Links published by the sources. Open them with care.