{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-54662","published":"2026-07-29T15:16:25.577000Z","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-hqj5-cw9f-rx67","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-54662/","html_en":"/en/cve/CVE-2026-54662/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-54662","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-54662"},"untrusted":{"vendor_name":"acacode","product_name":"swagger-typescript-api","desc_en":"swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/code-gen-process.ts createApiConfig copies servers[0].url into apiConfig.baseUrl, and templates/base/http-clients/fetch-http-client.ejs interpolates apiConfig.baseUrl into the generated HttpClient baseUrl field without escaping, allowing an attacker-controlled OpenAPI spec to inject TypeScript static field code that executes when the generated fetch client 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-hqj5-cw9f-rx67","tags":[]}]}}