CVE-2026-54660
published high CVSS 3.1 · 7.4swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| acacode | — | swagger-typescript-api< 13.12.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| acacode | swagger-typescript-api | < 13.12.2 (affected) | GitHub_M · cna |
Weaknesses
4- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-201 CWE-201: Insertion of Sensitive Information Into Sent Data
- CWE-522 CWE-522: Insufficiently Protected Credentials
- CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
References
4- https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de
- https://github.com/acacode/swagger-typescript-api/pull/1779
- https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2
- https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-h754-fxp7-88wx
Provider assertions
2GitHub_M · cna
swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f700070f4749f9dedf37852f9d87e4283a21b9dc6668fbf043c6b96ac5dfb1a6
- Ingested
- 23 Sep 2026, 09:20:39 UTC
- Source record
- Official CVE record