Skip to main content
← All vulnerabilities
CVE-2026-54663GHSA-X36R-4347-PM5X

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.12.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • acacode swagger-typescript-api

    fixed in 13.12.2

  • swagger-typescript-apinpm

    fixed in 13.12.2

References 4

GitHub · acacode/swagger-typescript-api