# CVE-2026-54660: swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T14:21:34.295Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-h754-fxp7-88wx
- Weaknesses: CWE-200, CWE-201, CWE-522, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- acacode swagger-typescript-api: < 13.12.2
- swagger-typescript-api (npm): before 13.12.2

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-h754-fxp7-88wx> (exploit, web)
- <https://github.com/acacode/swagger-typescript-api/pull/1779> (web)
- <https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de> (web)
- <https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2> (web)
- <https://github.com/acacode/swagger-typescript-api> (package)

## Sources

- CVE List: [CVE-2026-54660](https://www.cve.org/CVERecord?id=CVE-2026-54660), CVE Terms of Use, modified 2026-07-30
- GitHub Advisory Database: [GHSA-h754-fxp7-88wx](https://github.com/advisories/GHSA-h754-fxp7-88wx), CC-BY-4.0, modified 2026-07-29
- NVD: [CVE-2026-54660](https://nvd.nist.gov/vuln/detail/CVE-2026-54660), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-54660 · Whole record: https://cve.day/CVE-2026-54660.json · Rebuilt by cve.day 2026-11-25T22:59:30.439Z
