CVE-2019-10761Vm2 Project Vm2
High 8.3 No auth needed
Follow: this CVE · Vm2 Project · Vm2 Project Vm2 We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Vm2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| vm2_project | vm2 | < 3.6.11 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- snyk.io Third Party Advisory