CVE-2026-54663: CWE-20: Improper Input Validation in acacode swagger-typescript-api
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.
AI Analysis
Technical Summary
swagger-typescript-api versions before 13.12.2 contain an improper input validation vulnerability (CWE-20) in the src/resolved-swagger-schema.ts module. The warmUpRemoteSchemasCache function resolves external $ref URLs, and fetchRemoteSchemaDocument uses isHttpUrl to fetch HTTP/HTTPS targets without validating against private IP ranges, redirects, DNS rebinding, or same-origin constraints. This flaw allows an attacker to craft a malicious OpenAPI specification that triggers the generator to make unauthorized requests to internal or link-local network services. The issue is addressed in version 13.12.2.
Potential Impact
An attacker who can supply a malicious OpenAPI specification to swagger-typescript-api prior to 13.12.2 may cause the tool to make unauthorized HTTP requests to internal or link-local network services. This could lead to information disclosure or interaction with internal services that are otherwise inaccessible. The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, and user interaction required, impacting confidentiality and integrity with no availability impact.
Mitigation Recommendations
Upgrade swagger-typescript-api to version 13.12.2 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 13.12.2.
CVE-2026-54663: CWE-20: Improper Input Validation in acacode swagger-typescript-api
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.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
swagger-typescript-api versions before 13.12.2 contain an improper input validation vulnerability (CWE-20) in the src/resolved-swagger-schema.ts module. The warmUpRemoteSchemasCache function resolves external $ref URLs, and fetchRemoteSchemaDocument uses isHttpUrl to fetch HTTP/HTTPS targets without validating against private IP ranges, redirects, DNS rebinding, or same-origin constraints. This flaw allows an attacker to craft a malicious OpenAPI specification that triggers the generator to make unauthorized requests to internal or link-local network services. The issue is addressed in version 13.12.2.
Potential Impact
An attacker who can supply a malicious OpenAPI specification to swagger-typescript-api prior to 13.12.2 may cause the tool to make unauthorized HTTP requests to internal or link-local network services. This could lead to information disclosure or interaction with internal services that are otherwise inaccessible. The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, and user interaction required, impacting confidentiality and integrity with no availability impact.
Mitigation Recommendations
Upgrade swagger-typescript-api to version 13.12.2 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 13.12.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T20:16:46.199Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6a13c09c2644c7f8a6d808
Added to database: 07/29/2026, 14:52:48 UTC
Last enriched: 07/29/2026, 15:10:06 UTC
Last updated: 07/29/2026, 15:37:56 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.