{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-54664","published":"2026-07-29T15:16:25.850000Z","last_modified":"2026-10-23T23:10:00.157000Z","status":"Deferred","cvss":{"version":"3.1","score":8.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-74","CWE-94","CWE-1336"],"cpes":[],"cpes_truncated":false,"vendors":["acacode"],"products":["acacode/swagger-typescript-api"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5f94-x226-ccpm","ecosystem":"npm","name":"swagger-typescript-api","purl":"pkg:npm/swagger-typescript-api","ranges":[{"introduced":"0","fixed":"13.12.2"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":65,"links":{"html_es":"/es/cve/CVE-2026-54664/","html_en":"/en/cve/CVE-2026-54664/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-54664","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-54664"},"untrusted":{"vendor_name":"acacode","product_name":"swagger-typescript-api","desc_en":"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.","affected":[{"untrusted_vendor":"acacode","untrusted_product":"swagger-typescript-api","versions":[]}],"references":[{"url":"https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de","tags":[]},{"url":"https://github.com/acacode/swagger-typescript-api/pull/1779","tags":[]},{"url":"https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2","tags":[]},{"url":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-5f94-x226-ccpm","tags":[]}]}}