CVE-2026-54666 json
swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies
published 2026-07-29 3 mo ago modified 2026-10-23 16 d ago also GHSA-w284-33mx-6g9v , EUVD-2026-50367
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, src/schema-routes/schema-routes.ts passes OpenAPI path keys through parseRouteName to templates/default/procedure-call.ejs and templates/modular/procedure-call.ejs without escaping JavaScript template literal interpolation, allowing an attacker-controlled path containing ${...} to execute when the generated method is called. This issue is fixed in version 13.12.2.
Patch / fix
- npm swagger-typescript-api 13.12.2
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-w284-33mx-6g9v referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | swagger-typescript-api | <13.12.2 |
13.12.2 |
Affected products
- acacode swagger-typescript-api
Classification
References
-
github.com
/acacode/swagger-typescript-api/pull/1779
web
-
github.com
/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de
web
-
github.com
/acacode/swagger-typescript-api/security/advisories/GHSA-w284-33mx-6g9v
exploit, web
-
github.com
/acacode/swagger-typescript-api/releases/tag/v13.12.2
web
-
github.com
/acacode/swagger-typescript-api
package
Sources
- CVE List CVE-2026-54666
- GitHub Advisory GHSA-w284-33mx-6g9v
- NVD CVE-2026-54666
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.