CVE-2026-54663

swagger-typescript-api vulnerable to Server-Side Request Forgery via spec `$ref`

State
Published
Severity
6.1 Medium
Published
Jul 29, 2026
Updated
Jul 29, 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 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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')
  • 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.