CriticalGHSA-rjf2-j2r6-q8grCVE-2021-23449SNYK-JS-VM2-1585918
Prototype Pollution in vm2
Published 19 Oct 2021 · Updated 8 Jul 2026
Affected package
vm2npm
- Affected
- <3.9.4
- Fixed in
- 3.9.4
Update to the fixed version for your release line, for example:
npm install vm2@3.9.4Details
This affects the package vm2 before 3.9.4. Prototype Pollution attack vector can lead to sandbox escape and execution of arbitrary code on the host machine.
Is GHSA-rjf2-j2r6-q8gr in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected vm2, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-23449
- Linkgithub.com/patriksimek/vm2/issues/363
- Linkgithub.com/patriksimek/vm2/commit/b4f6e2bd2c4a1ef52fc4483d8e35f28bc4481886
- Packagegithub.com/patriksimek/vm2
- Linkgithub.com/patriksimek/vm2/releases/tag/3.9.4
- Linksecurity.netapp.com/advisory/ntap-20211029-0010
- Linksnyk.io/vuln/SNYK-JS-VM2-1585918
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.