Injectionin patriksimek vm2.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
vm2 is a sandbox that can run untrusted code with Node's built-in modules. In versions 3.9.17 and lower of vm2 it was possible to get a read-write reference to the node `inspect` method and edit options for `console.log`. As a result a threat actor can edit options for the `console.log` command. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. Users unable to upgrade may make the `inspect` method readonly with `vm.readonly(inspect)` after creating a vm.
- Upgrade vm2 to 3.9.18 or later.
- Upgrade vm2 (npm) to 3.9.18 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 8 May 2023CVE ID reserved by GitHub_M.
- 15 May 2023Published in the CVE List.
- 22 Jan 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other vm2 vulnerabilities
Same weakness: Injection
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- gist.github.com x_refsource_MISC
- github.com x_refsource_MISC
Patchminder. CVE-2023-32313: Injection in patriksimek vm2. https://patchminder.com/cve/cve-2023-32313/ (accessed 5 December 2026).