CVE Explorer
CVE-2026-54661
swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, templates/base/http-clients/axios-http-client.ejs interpolates servers[0].url from src/code-gen-process.ts into the HttpClient constructor without escaping, allowing an attacker-controlled OpenAPI spec to inject code that executes when new HttpClient() or new Api() is constructed. 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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /containers/cna/references/3
{"name":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-38c3-wv3c-v3xj","tags":["x_refsource_CONFIRM"],"url":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-38c3-wv3c-v3xj"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:89e38134fef0e8365a9c1884ca53969b745920aa9313c9ba73ddb722c026d5e7 · sha256:aff1b307742655c5… · /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.