CVE-2026-54660

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

State
Published
Severity
7.4 High
Published
Jul 29, 2026
Updated
Jul 30, 2026
Reserved
Jun 15, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-201 Insertion of Sensitive Information Into Sent Data
  • CWE-522 Insufficiently Protected Credentials
  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
swagger-typescript-apiacacode
  • < 13.12.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.