Intel

AIKIDO-2026-11123

swagger-typescript-api is vulnerable to Exposure of Sensitive Information

CVE-2026-54660Published Jun 9, 2026
June 9, 2026

74

CVE Score

High

Exposure of Sensitive Information

Are you affected? Scan for Free

TL;DR

swagger-typescript-api resolves external $ref URLs in OpenAPI specifications during code generation and forwards the configured authorization token on every request without any same-origin check, host allowlist, or cross-origin scope-down. When a developer supplies credentials to fetch a private spec, a malicious or compromised spec can reference an attacker-controlled URL and cause the generator to send those credentials to it. This exfiltrates high-value secrets such as bearer tokens, personal access tokens, or API keys to the attacker. The fix forwards the authorization token only to same-origin remote URLs and blocks cross-origin credential forwarding.

How do I fix this?

Upgrade the swagger-typescript-api library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 13.12.1

Fixed in 13.12.2

Background info

swagger-typescript-api is vulnerable to Exposure of Sensitive Information in versions 0.0.1 - 13.12.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea