CVE-2026-92958: Improper Privilege Management in patriksimek vm2
CVE-2026-92958 is a high-severity vulnerability in the patriksimek vm2 library up to version 3.11.6. It involves a bypass of the builtin-module denylist in NodeVM, allowing sandboxed code to require certain filesystem submodules despite explicit denials. This enables unauthorized access to promise-based filesystem APIs such as fs/promises, potentially allowing file creation and modification. The issue is fixed in version 3.11.7.
AI Analysis
Technical Summary
The vulnerability in vm2 versions before 3.11.7 arises from improper privilege management in the builtin-module denylist feature of NodeVM. When the embedder configures require with a builtin wildcard and negative entries (e.g., require: { builtin: ['*', '-fs', '-child_process'] }), the negative entries only match exact module names and do not block subpaths like fs/promises. Consequently, sandboxed code can bypass restrictions by requiring submodules such as 'fs/promises' or 'node:fs/promises', gaining access to promise-based filesystem operations. This allows sandboxed code to perform file system writes and other operations that should have been denied. The vendor fixed this issue in vm2 version 3.11.7.
Potential Impact
Sandboxed code can bypass module denylist restrictions to access and use promise-based filesystem APIs, enabling unauthorized file creation, modification, and other filesystem operations. This breaks the intended security isolation of the sandbox environment, potentially leading to privilege escalation or unauthorized data manipulation.
Mitigation Recommendations
Upgrade to vm2 version 3.11.7 or later, where this builtin-module denylist bypass is fixed. No other mitigation is required as the vendor has provided an official fix.
CVE-2026-92958: Improper Privilege Management in patriksimek vm2
Description
CVE-2026-92958 is a high-severity vulnerability in the patriksimek vm2 library up to version 3.11.6. It involves a bypass of the builtin-module denylist in NodeVM, allowing sandboxed code to require certain filesystem submodules despite explicit denials. This enables unauthorized access to promise-based filesystem APIs such as fs/promises, potentially allowing file creation and modification. The issue is fixed in version 3.11.7.
CVSS v4.0
Score 8.4high
Affected software
patriksimek
vm2
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in vm2 versions before 3.11.7 arises from improper privilege management in the builtin-module denylist feature of NodeVM. When the embedder configures require with a builtin wildcard and negative entries (e.g., require: { builtin: ['*', '-fs', '-child_process'] }), the negative entries only match exact module names and do not block subpaths like fs/promises. Consequently, sandboxed code can bypass restrictions by requiring submodules such as 'fs/promises' or 'node:fs/promises', gaining access to promise-based filesystem operations. This allows sandboxed code to perform file system writes and other operations that should have been denied. The vendor fixed this issue in vm2 version 3.11.7.
Potential Impact
Sandboxed code can bypass module denylist restrictions to access and use promise-based filesystem APIs, enabling unauthorized file creation, modification, and other filesystem operations. This breaks the intended security isolation of the sandbox environment, potentially leading to privilege escalation or unauthorized data manipulation.
Mitigation Recommendations
Upgrade to vm2 version 3.11.7 or later, where this builtin-module denylist bypass is fixed. No other mitigation is required as the vendor has provided an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-17T12:43:31.527Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac65c555bf5e2cf5fdf693
Added to database: 09/17/2026, 22:12:21 UTC
Last enriched: 09/17/2026, 22:16:59 UTC
Last updated: 09/18/2026, 02:58:47 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.