Skip to main content
VulnerabilityPublished Updated

CVE-2026-48819: hey-api openapi-ts · Prototype Pollution

Affects hey-api openapi-tsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 4.8 Medium : upgrade to 0.97.3 when convenient.

Data as of 30 Nov 2026, 18:37 UTC

CVSS 3.1 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.97.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade openapi-ts and @hey-api/openapi-ts to 0.97.3.

Affected software

ProductAffectedFixed in
hey-apiopenapi-tsAffected
  • <0.97.3
Fixed in
  • 0.97.3
npm@hey-api/openapi-tspkg:npm/%40hey-api/openapi-tsOther threatsAffected
  • <0.97.3
Fixed in
  • 0.97.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to hey-api openapi-ts version 0.97.3 or later, where this prototype pollution vulnerability is fixed. No other mitigation or temporary workaround is indicated.

Description

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.

References

Community reviews

Loading reviews…