Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hey-api/openapi-ts
  4. ›
  5. CVE-2026-48819

CVE-2026-48819: @hey-api/openapi-ts's `buildClientParams` template: prototype chain substitution via unknown `$<slot>___proto__` key

July 1, 2026

dist/clients/core/params.ts in @hey-api/openapi-ts ships a runtime template that is copied verbatim into every generated SDK as params.gen.ts. When a caller passes an object argument containing an unknown key starting with a slot prefix ($body_, $headers_, $path_, $query_), the function strips the prefix and writes the remainder directly to that slot without validation. The key "$query___proto__" causes the returned params.query object to have its prototype chain substituted with attacker-controlled data. The issue is present in all versions through at least 0.97.2.

References

  • github.com/advisories/GHSA-hhx9-57xq-r5rw
  • github.com/hey-api/openapi-ts/security/advisories/GHSA-hhx9-57xq-r5rw
  • nvd.nist.gov/vuln/detail/CVE-2026-48819

Code Behaviors & Features

Detect and mitigate CVE-2026-48819 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.97.3

Fixed versions

  • 0.97.3

Solution

Upgrade to version 0.97.3 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@hey-api/openapi-ts/CVE-2026-48819.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 04 Jul 2026 12:16:43 +0000.