CVE-2026-92962: Protection Mechanism Failure in patriksimek vm2
CVE-2026-92962 is a low-severity vulnerability in the vm2 JavaScript sandbox up to version 3.11.3. It involves the defaultSandboxPrepareStackTrace function using prototype-walking index assignment to build an output array, allowing sandboxed code to intercept stack-trace lines via an accessor on Array.prototype. This creates an information side channel and violates the sandbox's bridge-container defense invariant but does not enable sandbox escape. The issue is fixed in vm2 version 3.11.4 by changing to own data property assignment using Reflect.defineProperty.
AI Analysis
Technical Summary
The vulnerability in vm2 versions up to 3.11.3 arises from the defaultSandboxPrepareStackTrace function building its output array by assigning to array indices via prototype-walking (lines[lines.length] = value) rather than using a prototype-bypassing define-property method. Because the array is allocated within the sandbox realm, malicious sandbox code can install an accessor on Array.prototype for the relevant index. This accessor is triggered when the sandbox reads error.stack or triggers Error.prepareStackTrace, allowing the sandboxed code to observe and intercept each stack-trace line written by the bridge. The same pattern occurs in the error-handling branch. The vulnerability results in an information side channel and a violation of the sandbox's defense invariant but does not lead to sandbox escape. The vendor rates this issue as low severity. The fix in vm2 3.11.4 replaces the assignment with Reflect.defineProperty to install each entry as an own data property, preventing the interception.
Potential Impact
The impact is limited to an information side channel where sandboxed code can observe and intercept stack-trace lines generated by the bridge. There is no known sandbox escape or privilege escalation. The vendor rates the severity as low.
Mitigation Recommendations
A fix is available in vm2 version 3.11.4, which changes the array property assignment to use Reflect.defineProperty, preventing the interception of stack-trace lines by sandboxed code. Users should upgrade to vm2 3.11.4 or later to remediate this issue.
CVE-2026-92962: Protection Mechanism Failure in patriksimek vm2
Description
CVE-2026-92962 is a low-severity vulnerability in the vm2 JavaScript sandbox up to version 3.11.3. It involves the defaultSandboxPrepareStackTrace function using prototype-walking index assignment to build an output array, allowing sandboxed code to intercept stack-trace lines via an accessor on Array.prototype. This creates an information side channel and violates the sandbox's bridge-container defense invariant but does not enable sandbox escape. The issue is fixed in vm2 version 3.11.4 by changing to own data property assignment using Reflect.defineProperty.
CVSS v4.0
Score 2.1low
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 up to 3.11.3 arises from the defaultSandboxPrepareStackTrace function building its output array by assigning to array indices via prototype-walking (lines[lines.length] = value) rather than using a prototype-bypassing define-property method. Because the array is allocated within the sandbox realm, malicious sandbox code can install an accessor on Array.prototype for the relevant index. This accessor is triggered when the sandbox reads error.stack or triggers Error.prepareStackTrace, allowing the sandboxed code to observe and intercept each stack-trace line written by the bridge. The same pattern occurs in the error-handling branch. The vulnerability results in an information side channel and a violation of the sandbox's defense invariant but does not lead to sandbox escape. The vendor rates this issue as low severity. The fix in vm2 3.11.4 replaces the assignment with Reflect.defineProperty to install each entry as an own data property, preventing the interception.
Potential Impact
The impact is limited to an information side channel where sandboxed code can observe and intercept stack-trace lines generated by the bridge. There is no known sandbox escape or privilege escalation. The vendor rates the severity as low.
Mitigation Recommendations
A fix is available in vm2 version 3.11.4, which changes the array property assignment to use Reflect.defineProperty, preventing the interception of stack-trace lines by sandboxed code. Users should upgrade to vm2 3.11.4 or later to remediate this issue.
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: 6aac0b8155bf5e2cf5942eef
Added to database: 09/17/2026, 15:47:13 UTC
Last enriched: 09/17/2026, 16:01:58 UTC
Last updated: 09/17/2026, 16:58:18 UTC
Views: 6
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.