{"api_version":"1","generated_at":"2026-05-12T18:11:29+00:00","cve":"CVE-2023-32313","urls":{"html":"https://cve.report/CVE-2023-32313","api":"https://cve.report/api/cve/CVE-2023-32313.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-32313","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313"},"summary":{"title":"CVE-2023-32313","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-05-15 20:15:00","updated_at":"2023-05-24 20:43:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550","name":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550","refsource":"MISC","tags":[],"title":"PoC for breaking console.log in vm2@3.9.17 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238","name":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238","refsource":"MISC","tags":[],"title":"Inspect method should be readonly · patriksimek/vm2@5206ba2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v","name":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v","refsource":"MISC","tags":[],"title":"Inspect Manipulation · Advisory · patriksimek/vm2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18","name":"https://github.com/patriksimek/vm2/releases/tag/3.9.18","refsource":"MISC","tags":[],"title":"Release 3.9.18 · patriksimek/vm2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-32313","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"32313","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vm2_project","cpe5":"vm2","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-32313","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","cweId":"CWE-74"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"patriksimek","product":{"product_data":[{"product_name":"vm2","version":{"version_data":[{"version_affected":"=","version_value":"< 3.9.18"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v","refsource":"MISC","name":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"},{"url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238","refsource":"MISC","name":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238"},{"url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550","refsource":"MISC","name":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550"},{"url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18","refsource":"MISC","name":"https://github.com/patriksimek/vm2/releases/tag/3.9.18"}]},"source":{"advisory":"GHSA-p5gc-c584-jj6v","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-05-15 20:15:00","lastModifiedDate":"2023-05-24 20:43:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.9.18","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}