# CVE-2026-54663: swagger-typescript-api vulnerable to Server-Side Request Forgery via spec `$ref`

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/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.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T14:28:33.360Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-x36r-4347-pm5x
- Weaknesses: CWE-20, CWE-441, 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 warmUpRemoteSchemasCache resolves external $ref URLs and fetchRemoteSchemaDocument uses isHttpUrl to fetch any http or https target without private IP, redirect, DNS rebinding, or same-origin validation, allowing an attacker-controlled OpenAPI spec to make the generator issue requests to internal or link-local services. 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 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-x36r-4347-pm5x> (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-54663](https://www.cve.org/CVERecord?id=CVE-2026-54663), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-x36r-4347-pm5x](https://github.com/advisories/GHSA-x36r-4347-pm5x), CC-BY-4.0, modified 2026-07-29
- NVD: [CVE-2026-54663](https://nvd.nist.gov/vuln/detail/CVE-2026-54663), Public domain, modified 2026-10-23

---

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