{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54666","id":"CVE-2026-54666","title":"swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies","description":"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 execu","descriptionLong":"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.","published":"2026-07-29T14:34:48.668Z","updated":"2026-10-28T02:30:25.668457359Z","reserved":"2026-06-15T22:53:58.560Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["acacode swagger-typescript-api"],"affectedProducts":[{"vendor":"acacode","product":"swagger-typescript-api","defaultStatus":null,"versions":[{"version":"< 13.12.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"swagger-typescript-api","purl":"pkg:npm/swagger-typescript-api","ranges":["<13.12.2"],"fixed":["13.12.2"],"advisory":"GHSA-w284-33mx-6g9v"}],"cwes":["CWE-74","CWE-94","CWE-1336"],"aliases":["GHSA-w284-33mx-6g9v"],"references":[{"url":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-w284-33mx-6g9v","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/acacode/swagger-typescript-api/pull/1779","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54666.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54666","tags":["advisory"]},{"url":"https://github.com/acacode/swagger-typescript-api","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00359,"epssPercentile":0.30347,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54666","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54666","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54666","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w284-33mx-6g9v","ok":true,"note":"GHSA-w284-33mx-6g9v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54666","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}