CVE-2026-48819
Beschrijving NL
Hey API is een ecosysteem voor het omzetten van API-specificaties in productieklare code. Voorafgaand aan 0.97.3 verzendt dist/clients/core/params.ts een runtimesjabloon dat is gekopieerd naar gegenereerde SDK's als params.gen.ts, en buildClientParams schrijft onbekende vooraf ingestelde sleutels zoals $body_, $headers_, $path_en $query_ rechtstreeks naar de overeenkomstige sleuf, waardoor $query___proto__ naast een legitiem q-veld params.query kan instellen via params["query"]["__proto__"] = value, call Object.setProtypeOf (params.query, value), en overgeërfde door aanvaller gecontroleerde sleutels tijdens f of..in iteratie. Dit probleem is opgelost in versie 0.97.3.
Origineel (Engels) tonen
Hey API is an ecosystem for turning API specifications into production-ready code. Prior to 0.97.3, dist/clients/core/params.ts ships a runtime template copied into generated SDKs as params.gen.ts, and buildClientParams writes unknown slot-prefixed keys such as $body_, $headers_, $path_, and $query_ directly to the corresponding slot, allowing $query___proto__ alongside a legitimate q field to set params.query through params["query"]["__proto__"] = value, call Object.setPrototypeOf(params.query, value), and expose inherited attacker-controlled keys during for..in iteration. This issue is fixed in version 0.97.3.