Close async generator yield*-return thenable exception capture
fix(GHSA-248r-7h7q-cr24): close async generator yield*-return thenable exception capture
Close async generator yield*-return thenable exception capture093494-fix-close-async-generator-yield--return-thenable-cve-2026-45411fixclose async generator yield return thenable
Committed by patriksimek
commit message
fix(GHSA-248r-7h7q-cr24): close async generator yield*-return thenable exception capture
Wrap %AsyncGeneratorPrototype%.next/.return/.throw to sanitise both
iterator-result values/rejections and the thenable arguments V8 awaits
in yield*-return abrupt completion. The non-thenable branch of the
thenable wrapper always resolves with a sandbox-realm shadow (own
descriptors copied except .then) so V8's [[Get]] in
PromiseResolveThenableJob cannot re-detect a thenable on the user's
value via getter or descriptor TOCTOU.
Restores Defense Invariant #2 for the implicit-catch case in V8's
async generator state machine.
Bumps version to 3.11.3.
ATTACKS.md gains Category 29 with the full mitigation rationale and
trade-off discussion. CHANGELOG.md updated.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>Editor assessment
This commit patches CVE-2026-45411. The body explains that the async generator next, return and throw methods must sanitize both iterator results and the thenables V8 awaits during yield-star return, plus why non-thenable paths resolve with a descriptor-copied sandbox shadow to avoid re-detection. It ties the work to Defense Invariant #2, notes the version bump, and references an ATTACKS.md category and changelog. That is a lot of teaching in three paragraphs. The GHSA-as-scope header caps it, though, and 'yield*-return thenable exception capture' is a mouthful the subject cannot carry; the Claude co-author footer is correctly formed. Acceptable.