CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-92949

CVE-2026-92949: Sandbox Escape and State Mutation in vm2 via Accessor Property Descriptor Leak

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 2, 2026·7 min read·32 visits

Executive Summary (TL;DR)

A security flaw in vm2's proxy bridge allows sandboxed applications to leak and invoke property setters on frozen objects, enabling unauthorized write access to host-realm configurations and bypassing isolation controls.

CVE-2026-92949 is a sandbox bypass vulnerability in the vm2 library affecting versions 3.9.6 through 3.11.6. The flaw exists due to a breakdown in the ReadOnlyHandler proxy boundary, allowing sandboxed scripts to obtain direct references to wrapped property setters on frozen host-bound objects, ultimately leading to unauthorized state modification in the host environment. This security failure violates the read-only contract enforced by the sandbox for frozen/readonly objects, though it does not by itself allow a full execution-level realm escape. Due to systemic and structural design difficulties in securing a shared-runtime JavaScript sandbox, the vm2 library has been officially deprecated.

Vulnerability Overview

The Node.js library vm2 is an advanced sandbox environment designed to run untrusted code securely within a shared V8 process. It relies heavily on V8 Proxies to intercept interactions between the isolated sandbox environment and the main host process. This architecture creates a logical boundary meant to restrict the untrusted code from modifying host-level data structures or escalating privileges.

The vulnerability identified as CVE-2026-92949 undermines this architecture by exposing a weakness in how the proxy bridge handles descriptor requests. When host objects are marked as frozen or read-only, developers expect their attributes to remain completely immutable from within the sandbox. However, the system fails to apply equivalent validation controls on the indirect retrieval pathways of property descriptors, leading to an integrity compromise.

The underlying flaw allows sandboxed code to request property descriptors of immutable host-bound objects and obtain a live, executable proxy wrapper of the underlying setter function. This behavior violates the logical contract enforced by vm2's ReadOnlyHandler proxy. While the bypass does not immediately grant a full execution-level realm escape on its own, it allows attackers to bypass read-only configurations, which frequently serve as a stepping stone to full compromise.

Root Cause Analysis

To understand the root cause, we must analyze the inheritance structure of vm2's proxy handlers. The ReadOnlyHandler class is designed to wrap objects that the application developer wishes to expose inside the sandbox as read-only. This handler intercepts write-traps like set, defineProperty, and deleteProperty to systematically drop or reject write requests. This ensures direct modification of properties on these wrapped objects is blocked.

The vulnerability occurs because ReadOnlyHandler inherits key proxy traps directly from BaseHandler without overriding them. Specifically, the getOwnPropertyDescriptor trap remains unguarded in ReadOnlyHandler. When a sandboxed application requests the descriptor of an accessor property (a property that uses get and set methods) on a frozen host object, BaseHandler processes the query. It returns a descriptor structure where the get and set methods are automatically wrapped in a callable function bridge.

This creates an asymmetric exposure vector. Although direct writes to the proxy are blocked, reading the property descriptor leaks a fully functional, bridge-wrapped wrapper pointing to the original host setter. The sandbox can then invoke this setter directly in the context of the host object, completely bypassing the proxy and its write-restriction traps.

The V8 engine executes the invoked setter on the raw, unwrapped host target. Because the execution path goes straight to the underlying native JavaScript engine, the write-blocking proxy traps are never evaluated. Consequently, the host-realm state is mutated through a view that was explicitly marked as immutable by the developer.

Code Analysis

The vulnerability was resolved in commit d6ef73bd46488102dae8f4bc35f3f3c0eba2ea64 by modifying lib/bridge.js. The fix implements defensive overrides within the proxy handlers to drop setter functions before they are bridged back to the sandbox. Below is a conceptual illustration showing the vulnerable code design versus the patched implementation.

// BEFORE PATCH (lib/bridge.js)
// ReadOnlyHandler did not override getOwnPropertyDescriptorDesc,
// meaning any call to read descriptors would default to BaseHandler.
// BaseHandler returned wrapped accessors (including setters) directly to the sandbox.
class ReadOnlyHandler extends BaseHandler {
    // Missing getOwnPropertyDescriptorDesc override
}

The patch introduces an explicit trap in ReadOnlyHandler to sanitize descriptors before they cross the boundary to the sandbox. When the property descriptor of a frozen host-bound object is queried from the sandbox, the bridge checks if a setter is present and strips it from the returned descriptor.

// AFTER PATCH (lib/bridge.js)
// ReadOnlyHandler is updated to explicitly intercept and sanitize descriptors.
class ReadOnlyHandler extends BaseHandler {
    getOwnPropertyDescriptorDesc(target, prop, desc) {
        validateHandlerTarget(this, target);
        desc = super.getOwnPropertyDescriptorDesc(target, prop, desc);
        
        // Strip the setter if the target is sandbox-bound and holds a set accessor
        if (!isHost && desc && desc.set) {
            desc.set = undefined;
        }
        return desc;
    }
}

Additionally, V8 enforces strict rules regarding proxy behavior. If a target object is frozen, the returned proxy descriptors must align with the target's original attributes. To prevent runtime type errors (TypeError) resulting from the mismatch of stripped setters, the maintainers also updated doPreventExtensions to consistently route descriptor duplication through the new sanitization hook. This ensures V8 internal compliance and prevents application crashes.

Exploitation Methodology

An attacker can exploit this vulnerability using multiple descriptor extraction channels available in standard ECMAScript. These channels include Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors, Reflect.getOwnPropertyDescriptor, and the legacy Object.prototype.__lookupSetter__ function. Each of these APIs triggers the vulnerable getOwnPropertyDescriptor proxy trap under the hood.

// Triggering the exploit inside the sandbox using multiple extraction channels
 
// Channel 1: Using Object.getOwnPropertyDescriptor
const descriptor = Object.getOwnPropertyDescriptor(cfg, 'level');
if (descriptor && descriptor.set) {
    descriptor.set.call(cfg, 'PWNED-gopd');
}
 
// Channel 2: Using the legacy __lookupSetter__ method
const setter = cfg.__lookupSetter__('level');
if (setter) {
    setter.call(cfg, 'PWNED-lookup');
}

Once the setter function is retrieved, the attacker invokes it using Function.prototype.call or Function.prototype.apply. By passing the frozen object as the this argument, the execution runs in the context of the host object. Because the bridge unwraps the proxy context to execute the target function on the native host instance, the mutation happens directly on the host memory space without triggering the set trap.

This execution path requires no authentication or specific privileges inside the sandbox. The only prerequisite is that the host application must expose an object containing accessor properties (getters and setters) to the sandbox, and mark that object as frozen or read-only. If the host application exposes such configurations, the sandbox environment can alter them completely.

Impact Assessment

The impact of CVE-2026-92949 is classified under CWE-471: Modification of Assumed-Immutable Data (MAID). This type of vulnerability compromises the fundamental integrity guarantees provided by a sandbox environment. If an application developer exposes critical configurations, security parameters, database connections, or routing tables as frozen objects, the sandboxed code can alter these parameters to manipulate host application flow.

The National Vulnerability Database has assigned this vulnerability a CVSS v3.1 score of 4.0, reflecting medium severity. The attack complexity is rated as high because the vulnerability requires a specific runtime context: the host must expose an object with accessor properties to the sandbox. The integrity impact is classified as low because the exploit only allows modifications of specific exposed objects, rather than absolute system-level writes or arbitrary host-realm shell execution.

The EPSS score for this vulnerability is 0.00319, which indicates a low immediate probability of active exploitation in the wild. Additionally, the vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. However, in scenarios where the sandbox is the primary defense line protecting a multitenant execution environment, this bypass represents a severe gap in boundary containment.

Remediation and Migration

The primary mitigation is upgrading vm2 to version 3.11.7 or higher, which contains the complete patch for this flaw. Organizations should audit their dependency trees to identify any transitive usage of vm2 in their environments. Because the library is widely utilized, many security scanners and static analysis tools will flag older installations.

It is critical to note that the vm2 library is officially deprecated and is no longer maintained. Due to the inherent difficulty of securing a shared-process JavaScript runtime, the project maintainers have advised users to migrate away from vm2 completely. The architectural design of Node.js makes it fundamentally difficult to prevent all sandbox escapes when the sandbox and host share a single V8 engine instance.

For robust and secure isolation of untrusted JavaScript code, organizations should migrate to isolated-vm. This library isolates sandboxed execution within separate V8 Isolate contexts, which do not share the same memory heap or garbage collector as the host process. Alternatively, running untrusted code inside microVMs, Docker containers, or WASM runtimes offers far superior hardware-level isolation compared to process-shared JavaScript wrappers.

Official Patches

patriksimekOfficial fix commit introducing ReadOnlyHandler descriptor filtering.

Fix Analysis (1)

Technical Appendix

CVSS Score
4.0/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
EPSS Probability
0.32%
Top 78% most exploited

Affected Systems

Node.js applications running vm2 library within multi-tenant execution contexts

Affected Versions Detail

Product
Affected Versions
Fixed Version
vm2
patriksimek
>= 3.9.6, < 3.11.73.11.7
AttributeDetail
CWE IDCWE-471: Modification of Assumed-Immutable Data (MAID)
Attack VectorNetwork / Sandboxed Script Execution
CVSS Score4.0 (Medium)
EPSS Score0.00319 (Percentile: 22.47%)
ImpactLow Integrity (State Modification of Host objects)
Exploit StatusProof of Concept (PoC) Verified
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
T1211Exploitation for Defense Evasion
Defense Evasion
CWE-471
Modification of Assumed-Immutable Data (MAID)

The product does not protect assumed-immutable data from modification by an unauthorized actor, which can compromise the integrity of the data or system configuration.

Known Exploits & Detection

Official Test SuitesExploitation via Object.getOwnPropertyDescriptor and __lookupSetter__ is verified within unit tests of the fixing commit.

Vulnerability Timeline

Security patch designed and committed by maintainers in d6ef73bd46488102dae8f4bc35f3f3c0eba2ea64.
2026-08-22
CVE-2026-92949 officially assigned and published in the NVD and CVE databases.
2026-09-17
Metadata audit and database record update completed.
2026-09-21

References & Sources

  • [1]Official GitHub Security Advisory (GHSA-633r-hq9m-c4ff)
  • [2]VulnCheck Vulnerability Advisory
  • [3]Official Release tag (v3.11.7)
  • [4]NVD Vulnerability Page
  • [5]CVE.org Official Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-114156
6.5

CVE-2026-114156: Path Equivalence Security Feature Bypass in Microsoft ASP.NET Core

CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.

Amit Schendel
Amit Schendel
1 views•8 min read
•about 2 hours ago•CVE-2026-114157
7.5

CVE-2026-114157: Local Privilege Escalation via Race Condition in ASP.NET Core Kestrel Named Pipes Transport

CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.

Amit Schendel
Amit Schendel
4 views•11 min read
•about 3 hours ago•CVE-2026-124194
6.5

CVE-2026-124194: Forced Authentication and NetNTLMv2 Credential Leakage in Microsoft Office Outlook

CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Alon Barad
Alon Barad
11 views•10 min read
•about 3 hours ago•CVE-2026-114154
7.5

CVE-2026-114154: Denial of Service in ASP.NET Core HttpSys Request Header Processing

CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 4 hours ago•CVE-2026-120778
7.3

CVE-2026-120778: Local Elevation of Privilege via Insecure Temporary Directory Handling and MSBuild Response File Hijacking in Microsoft .NET Aspire CLI

A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.

Alon Barad
Alon Barad
4 views•10 min read
•about 5 hours ago•CVE-2026-120792
7.3

CVE-2026-120792: Local Information Disclosure via Temporary File Logging in Microsoft .NET Aspire CLI

CVE-2026-120792 is a high-severity local information disclosure vulnerability in the Microsoft .NET Aspire CLI (Aspire.Cli) affecting versions 13.5.4 prior to 13.6.5. The flaw stems from the insertion of sensitive information into a shared temporary log file (CWE-532) combined with insecure temporary file creation (CWE-377) within the DeprecatedMcpCommandScanner component. During agent configuration scanning, the CLI unconditionally appends internal workspace paths and the first 200 characters of Model Context Protocol (MCP) agent configuration files to a statically named file in the system temporary directory. On multi-user systems, unprivileged local users can read this file to harvest API keys, authentication tokens, and internal service endpoints.

Alon Barad
Alon Barad
4 views•9 min read