{"cve":"CVE-2023-32313","nvd":{"published":"2023-05-15T20:15:09.070","modified":"2026-06-17T05:58:32.993","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3},"cwes":["CWE-74"],"references":["https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550","https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238","https://github.com/patriksimek/vm2/releases/tag/3.9.18","https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v","https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550"],"products":["vm2_project:vm2"],"source":"nvd","synced_at":"2026-10-19T21:38:18.424950729+00:00"},"epss":{"cve":"CVE-2023-32313","score":0.0079,"percentile":0.56277,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p5gc-c584-jj6v","url":"https://osv.dev/vulnerability/GHSA-p5gc-c584-jj6v","summary":"vm2 vulnerable to Inspect Manipulation","modified":"2026-09-10T03:50:01.835338979Z","packages":[{"ecosystem":"npm","name":"vm2","purl":"pkg:npm/vm2","ranges":["<3.9.18"],"fixed":["3.9.18"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}