{"id":"CVE-2026-92958","published":"2026-09-17T13:46:15Z","modified":"2026-09-18T19:35:47Z","title":"vm2 before 3.11.7 Denylist Bypass via fs/promises","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 through 3.11.6 contains a builtin-module denylist bypass in NodeVM. When the embedder uses the builtin wildcard together with negative entries (e.g. require: { builtin: ['*', '-fs', '-child_process'] }), negative entries are matched by exact module name in lib/builtin.js, so -fs removes only the builtin named fs and does not remove builtin subpaths such as fs/promises. Sandboxed code can therefore call require('fs/promises') or require('node:fs/promises') and reach the promise-based filesystem API despite fs being denied; node: prefix handling is likewise inconsistent (a -node:fs/promises entry does not block require('fs/promises')). Host file creation and writing were confirmed via fsp.writeFile(), and other fs/promises operations (cp, mkdir, rename, rm, rmdir, truncate, read operations, etc.) are also reachable. This issue is fixed in vm2 3.11.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00384,"percentile":0.24272,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-6rh5-qq4q-97xh","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/vm2-before-3.11.7-denylist-bypass-via-fs-promises","tags":["third-party-advisory"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":4.85},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.11.7"]}],"fixedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["3.11.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-18T19:35:41.669234Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.11.7"],"patched":["3.11.7"],"from":["GHSA-6rh5-qq4q-97xh"],"provenance":"source"}],"summary":{"text":"vm2 through 3.11.6 is a JavaScript sandbox library whose NodeVM builtin-module denylist can be bypassed: when the embedder uses a wildcard builtin allowance with negative entries, a deny rule such as \"-fs\" only blocks the exact module name, leaving subpaths like \"fs/promises\" (and their \"node:\" prefixed forms) reachable. An attacker who can run code inside the sandbox, with no further conditions beyond that, can require the promise-based filesystem API despite fs being denied and perform host file operations such as creating and writing files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:11Z"},"euvd":{"id":"EUVD-2026-81607","exploited":false,"provenance":"source"}}