CVE-2026-54664acacode 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: proof of concept · 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, src/schema-parser/base-schema-parsers/enum.ts passes components.schemas.*.enum[i] values to Ts.StringValue in src/configuration.ts without escaping before templates/base/enum-data-contract.ejs renders TypeScript enum declarations, allowing an attacker-controlled OpenAPI spec to inject code that executes when the generated module is imported. 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-5f94-x226-ccpm). 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.