Read the docs
TI-2026-39486 Aliases CVE-2026-54660GHSA-h754-fxp7-88wx

swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`

Priority HIGH 66CWE-200Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00309 23rd percentileScored 2026-11-07
Fix Fixed swagger-typescript-api (acacode): 13.12.2swagger-typescript-api (npm): 13.12.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
acacodeswagger-typescript-apibefore 13.12.213.12.2Patch availableCNA
—swagger-typescript-api (npm)before 13.12.213.12.2Patch availableGHSA-h754-fxp7-88wx
  • swagger-typescript-api Vendoracacode Affected before 13.12.2 Fixed in 13.12.2 Patch available CNA
  • swagger-typescript-api (npm) Vendor— Affected before 13.12.2 Fixed in 13.12.2 Patch available GHSA-h754-fxp7-88wx

Remediation

  • Fix · CNA swagger-typescript-api (acacode) Fixed in 13.12.2
  • Fix · GHSA-h754-fxp7-88wx swagger-typescript-api (npm) Fixed in 13.12.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-54660
  2. 2026-10-03 Alias added: GHSA-h754-fxp7-88wx

References

  • TI-2026-39492 swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies CVSS 3.1HIGH 8.3
  • TI-2026-39490 swagger-typescript-api vulnerable to code injection via unescaped enum string values CVSS 3.1HIGH 8.3
  • TI-2026-39488 swagger-typescript-api vulnerable to code injection via unescaped `servers[0].url` in fetch http-client template CVSS 3.1HIGH 8.3
  • TI-2026-39489 swagger-typescript-api vulnerable to Server-Side Request Forgery via spec `$ref` CVSS 3.1MEDIUM 6.1
  • TI-2026-39487 swagger-typescript-api vulnerable to code injection via unescaped `servers[0].url` in axios http-client template CVSS 3.1HIGH 8.3

Sources