Neutralize host-Promise @@species across then/catch/finally
fix(GHSA-6454-5x88-m6jw): neutralize host-Promise @@species across then/catch/finally
Neutralize host-Promise @@species across then/catch/finally1cbbf3-fix-neutralize-host-promise-species-across-then-catch-cve-2026-93606fixneutralize host promise species across then
Committed by patriksimek-bot
commit message
fix(GHSA-6454-5x88-m6jw): neutralize host-Promise @@species across then/catch/finally
Root cause: V8 builds the then/catch/finally result capability via
SpeciesConstructor(hostPromise, %Promise%), reading constructor[@@species]
off the raw host promise with no bridge trap in between. With the
settlement-direction handler omitted, V8's internal Thrower/Identity
reaction delivers the raw host settlement to a sandbox-captured capability
and there is no callback slot for the Category 38/39 rebuild to wrap.
Fix (lib/bridge.js): neutralizeHostPromiseSpeciesOn shadows the raw host
promise's own constructor with an inert undefined data property for the
duration of a sandbox->host then/catch/finally call, so the result
capability is always a genuine host %Promise%; restored in finally, fails
closed with VMError on a non-configurable constructor or non-extensible
promise. peelEffectivePromiseCall now also unwinds host Reflect.apply and
recognizes .finally, so every invoker of a host promise method with a
sandbox-chosen receiver reaches the same gate. Restores Defense
Invariants #4 and #12 for host promises.
Tests: test/ghsa/GHSA-6454-5x88-m6jw/repro.js (10 vectors) and
reflect-apply-indirection.js (7 vectors).
Docs: new Category 53 in docs/attacks/promise-async.md, index row,
compound pattern 30, defends-table row; CHANGELOG [Unreleased].
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNJCz7eZo8seYyQDd11EmbEditor assessment
This commit patches CVE-2026-93606. The body explains the SpeciesConstructor capability leak across then/catch/finally, why no handler slot exists for the existing rebuild to wrap, and the shadowed-constructor neutralization that fails closed on non-configurable or non-extensible promises. It also covers Reflect.apply and finally peeling. Precise and tested; the GHSA-id scope is the only formal flaw, and it caps the score at 3. The failure mode for non-configurable promises is the key safety property; naming what happens to the sandbox call would complete it.