CVE-2026-43997: Fragile Function Constructor Name Guard

Property descriptor value is identified as the Function constructor by comparing `.name === 'Function'`. This check misses AsyncFunction, GeneratorFunction, and AsyncGeneratorFunction — all of which have different .name strings — allowing those constructors to cross a sandbox/proxy boundary unchecked. Replace with identity comparison against all cached dange

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-43997-fragile-function-constructor-name-guard --engine opengrep

Description

Property descriptor value is identified as the Function constructor by comparing `.name === 'Function'`. This check misses AsyncFunction, GeneratorFunction, and AsyncGeneratorFunction — all of which have different .name strings — allowing those constructors to cross a sandbox/proxy boundary unchecked. Replace with identity comparison against all cached dange