CVE-2026-54662
Last modified
CVE-2026-54662 is a high-severity vulnerability rated 8.3/10 on the CVSS scale. swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/code-gen-process.ts createApiConfig copies servers[0].url into apiConfig.baseUrl, and templates/base/http-clients/fetch-http-client.ejs interpolates apiConfig.baseUrl into the generated HttpClient baseUrl field without escaping, allowing an attacker-controlled OpenAPI spec to inject TypeScript static field code that executes when the generated fetch client module is imported. EPSS estimates a 0.27% chance of exploitation in the next 30 days.
Description
swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/code-gen-process.ts createApiConfig copies servers[0].url into apiConfig.baseUrl, and templates/base/http-clients/fetch-http-client.ejs interpolates apiConfig.baseUrl into the generated HttpClient baseUrl field without escaping, allowing an attacker-controlled OpenAPI spec to inject TypeScript static field code that executes when the generated fetch client module is imported. This issue is fixed in version 13.12.2.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| acacode | swagger-typescript-api | < 13.12.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-54662?
How severe is CVE-2026-54662?
How do I fix CVE-2026-54662?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-54656datamodel-code-generator generates Pydantic v2 models, datac…7.8
- CVE-2026-54658Hypequery is a TypeScript semantic layer for ClickHouse. Pri…9.8
- CVE-2026-54659Pagy is agnostic pagination in plain Ruby. From 43.0.0 until…6.9
- CVE-2026-5466wolfSSL's ECCSI signature verifier `wc_VerifyEccsiHash` deco…8.1
- CVE-2026-54660swagger-typescript-api generates API clients for Fetch or Ax…7.4
- CVE-2026-54661swagger-typescript-api generates API clients for Fetch or Ax…8.3
- CVE-2026-54663swagger-typescript-api generates API clients for Fetch or Ax…6.1
- CVE-2026-54664swagger-typescript-api generates API clients for Fetch or Ax…8.3
- CVE-2026-54665Apache NiFi 0.0.1 through 2.9.0 support building qualified U…5.3
- CVE-2026-54666swagger-typescript-api generates API clients for Fetch or Ax…8.3
- CVE-2026-5467A vulnerability was identified in Casdoor 2.356.0. Affected …6.1
- CVE-2026-54670WeGIA is a web manager for charitable institutions. Prior to…9.1
Are you affected by CVE-2026-54662?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
