swagger-typescript-api vulnerable to Server-Side Request Forgery via spec `$ref`
Summary
| CVE | CVE-2026-54663 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-29 15:16:25 UTC |
| Updated | 2026-07-30 19:23:14 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.1 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS: 0.001810000 probability, percentile 0.079250000 (date 2026-08-01)
Problem Types: CWE-20 | CWE-441 | CWE-918 | CWE-20 CWE-20: Improper Input Validation | CWE-441 CWE-441: Unintended Proxy or Intermediary ('Confused Deputy') | CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Acacode | Swagger-typescript-api | affected < 13.12.2 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/acacode/swagger-typescript-api/pull/1779 | [email protected] | github.com | |
| github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2 | [email protected] | github.com | |
| github.com/acacode/swagger-typescript-api/security/advisories/GHSA-x36r-... | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f80... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.