CVE-2026-54662: acacode swagger-typescript-api · Injection
Affects acacode swagger-typescript-apiSource CVE Database V5
Not known to be exploited · CVSS 8.3 High : upgrade to 13.12.2 soon.
Data as of 28 Oct 2026, 05:11 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 13.12.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade acacode swagger-typescript-api to 13.12.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| acacodeswagger-typescript-api | Affected
| Fixed in
|
npmswagger-typescript-apipkg:npm/swagger-typescript-apiOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to swagger-typescript-api version 13.12.2 or later, where this injection vulnerability is fixed. No other official remediation or temporary fixes are documented. Users should avoid generating clients from untrusted OpenAPI specifications until patched.
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.
References
- github.com/acacode/swagger-typescript-api/security/advisories/GHSA-hqj5-cw9f-rx67 (opens in a new tab)
- github.com/acacode/swagger-typescript-api/pull/1779 (opens in a new tab)
- github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de (opens in a new tab)
- github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2 (opens in a new tab)