Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. swagger-typescript-api
  4. ›
  5. CVE-2026-54663

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

July 29, 2026

swagger-typescript-api walks every $ref value in the input OpenAPI spec and, for any $ref whose target is an http(s):// URL, issues an HTTP GET to that URL during generation (warmUpRemoteSchemasCache). The only URL filter is a regex that matches ^https?:// — there is no private-IP allowlist, no DNS-rebinding protection, no redirect cap, and no same-origin check against the spec source. A malicious OpenAPI spec can therefore force the generator process to issue HTTP requests to arbitrary hosts and paths reachable from the generator’s network, including 127.0.0.1, RFC-1918 ranges, internal hostnames, and the cloud instance-metadata endpoint at 169.254.169.254.

The attacker model is identical to the previously reported code-injection findings: a developer or CI pipeline that runs swagger-typescript-api generate against an attacker-controlled spec (remote URL, third-party / public OpenAPI registry, multi-tenant tenant input, or a spec file modified via PR).

References

  • github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de
  • github.com/acacode/swagger-typescript-api/pull/1779
  • github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2
  • github.com/acacode/swagger-typescript-api/security/advisories/GHSA-x36r-4347-pm5x
  • github.com/advisories/GHSA-x36r-4347-pm5x
  • nvd.nist.gov/vuln/detail/CVE-2026-54663

Code Behaviors & Features

Detect and mitigate CVE-2026-54663 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 13.12.2

Fixed versions

  • 13.12.2

Solution

Upgrade to version 13.12.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/swagger-typescript-api/CVE-2026-54663.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.