vm2 is a sandbox that can run untrusted code with Node's built-in modules. In versions 3.9.17 and lower of…
Historical advisory recorded 24 Oct 2026 22:17:15 UTC. Read the latest advisory.
nvd · CVE-2023-32313
Publishedvm2 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2023-32313 · CVE overview and exploitation status
nvd · CVE-2023-32313
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.