CVE-2026-54660 swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`
Attackers can exfiltrate developer or CI bearer tokens by providing a malicious OpenAPI specification with external references.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-54660?
CVE-2026-54660 is a high-severity server-side request forgery vulnerability in acacode swagger-typescript-api, published on 29 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/resolved-swagger-schema.ts getRemoteRequestHeaders forwards --authorizationToken to every URL fetched by fetchRemoteSchemaDocument while warmUpRemoteSchemasCache resolves external $ref URLs, allowing an attacker-controlled OpenAPI spec to exfiltrate the developer or CI bearer token to a cross-origin endpoint. This issue is fixed in version 13.12.2.
Which versions are affected by CVE-2026-54660?
2 open source packages ship an affected version, including swagger-typescript-api.
| Package | Affected | Fixed in |
|---|---|---|
swagger-typescript-api npm | All versions | 13.12.2 |
swagger-typescript-api npm | All versions | 13.12.2 |
How do I fix CVE-2026-54660?
Upgrade swagger-typescript-api to 13.12.2 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-54660 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54660 exists.
Sources
Also known as GHSA-h754-fxp7-88wx.