CVE-2026-54661acacode swagger-typescript-api
High 8.3 No auth needed
Follow: this CVE · acacode · acacode swagger-typescript-api We alert you by email or Slack (account required).
- Priority
- 65
- CVSS 3.1
- 8.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 29, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
What happens
swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, templates/base/http-clients/axios-http-client.ejs interpolates servers[0].url from src/code-gen-process.ts into the HttpClient constructor without escaping, allowing an attacker-controlled OpenAPI spec to inject code that executes when new HttpClient() or new Api() is constructed. This issue is fixed in version 13.12.2.
What to do
- Apply the vendor's security update for swagger-typescript-api.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | swagger-typescript-api |
< 13.12.2 |
13.12.2 |
npm install swagger-typescript-api@13.12.2 |
Per OSV / GitHub Advisories (GHSA-38c3-wv3c-v3xj). Check the version in your lockfile before upgrading.
Affected products
- acacode · swagger-typescript-api
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.