CVE Explorer
CVE-2026-54664
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-74","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"swagger-typescript-api","vendor":"acacode","versions":[{"status":"affected","version":"< 13.12.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-74","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/problemTypes/1/descriptions/0
Source references
4 source assertions{"name":"https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de","tags":["x_refsource_MISC"],"url":"https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/references/2
{"name":"https://github.com/acacode/swagger-typescript-api/pull/1779","tags":["x_refsource_MISC"],"url":"https://github.com/acacode/swagger-typescript-api/pull/1779"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/references/1
{"name":"https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2","tags":["x_refsource_MISC"],"url":"https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/references/3
{"name":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-5f94-x226-ccpm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-5f94-x226-ccpm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9d229449baf636114482dc9f846ebb8b9d8c3158e2d7ab4d6adad3f6c4f1fbdd · sha256:bd9cc6e7b8f3b461… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.