{"id":"CVE-2026-92945","published":"2026-09-17T13:46:06Z","modified":"2026-09-17T14:25:31Z","title":"vm2 before 3.11.7 Module Allowlist Bypass via Prefix Matching","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 before 3.11.7 contains a module allowlist bypass vulnerability in isPathAllowedForModule that uses raw string prefix matching instead of boundary-anchored comparison. Attackers can reach non-allowlisted packages sharing a prefix with allowlisted modules by performing relative requires from allowlisted packages when transitive loading is disabled.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00277,"percentile":0.20649,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7q3f-wx44-378m","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/vm2-before-3.11.7-module-allowlist-bypass-via-prefix-matching","tags":["third-party-advisory"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":4.13},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.11.7"]}],"fixedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["3.11.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-17T14:25:03.800396Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.11.7"],"patched":["3.11.7"],"from":["GHSA-7q3f-wx44-378m"],"provenance":"source"}],"summary":{"text":"The flaw is in the module allowlist check (isPathAllowedForModule) of vm2, a Node.js sandbox, in versions before 3.11.7, where allowlist membership is decided by raw string prefix matching rather than a boundary-anchored comparison. An attacker with low privileges over the network can exploit it, with high attack complexity, to reach non-allowlisted packages that share a name prefix with allowlisted modules by making relative requires from those allowlisted packages, but only when transitive loading is disabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:58Z"},"euvd":{"id":"EUVD-2026-81594","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2026-92945","children":[{"from":"CVE-2026-92945","to":"CVE-2026-92951","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/resolver-compat.js"],"commits":["https://github.com/patriksimek/vm2/commit/6ac3916da84e060c403e407b6b6318fcc66b0e72","https://github.com/patriksimek/vm2/commit/ab4ee7d803e8c80155e9eb3672226bddbca4aa9c"],"basis":"shared function","functions":["LegacyResolver"]}]}]}}