PatchSiren cyber security CVE debrief
CVE-2026-54661 acacode CVE debrief
CVE-2026-54661 swagger-typescript-api OpenAPI Specification code injection allows attackers to inject malicious code via OpenAPI Specification, potentially leading to arbitrary code execution during HttpClient or Api construction. Developers and maintainers of API clients generated with swagger-typescript-api, especially those using Axios HttpClient, should assess exposure and update to version 13.12.2 or later. The issue arises from templates/base/http-clients/axios-http-client.ejs interpolating servers[0].url from src/code-gen-process.ts into the HttpClient constructor without escaping. This vulnerability is fixed in version 13.12.2.
- Vendor
- acacode
- Product
- swagger-typescript-api
- CVSS
- HIGH 8.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-29
- Original CVE updated
- 2026-10-23
- Advisory published
- 2026-07-29
- Advisory updated
- 2026-10-23
Who should care
Developers and maintainers of API clients generated with swagger-typescript-api, especially those using Axios HttpClient, should assess exposure and update to version 13.12.2 or later.
Why it matters
CVE-2026-54661 allows code injection in swagger-typescript-api via OpenAPI Specification. Developers should update to version 13.12.2 or later, assess exposure of generated API clients, and verify HttpClient and Api constructor usage.
- Code injection via OpenAPI Specification
- Potential for arbitrary code execution during HttpClient or Api construction
- Need for verification of HttpClient and Api usage in applications
- Priority for updating to fixed version 13.12.2 or later
Technical summary
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. The vulnerability is fixed in version 13.12.2, which addresses the code injection issue by properly escaping the interpolated values.
Defensive priority
High
Recommended defensive actions
- Review and update swagger-typescript-api to version 13.12.2 or later
- Assess exposure of API clients generated with vulnerable versions
- Verify HttpClient and Api constructor usage in your application
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE record and NVD entry provide details on the vulnerability in swagger-typescript-api. The issue is fixed in version 13.12.2. Evidence from the CVE Program and NIST NVD confirms the vulnerability and its resolution. Additional verification is recommended for HttpClient and Api constructor usage in applications. The vulnerability allows code injection via OpenAPI Specification, which can lead to arbitrary code execution.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-54661 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-54661
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-54661 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54661
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de
-
Source reference
Unverified legacy reference
URL: https://github.com/acacode/swagger-typescript-api/pull/1779
-
Source reference
Unverified legacy reference
URL: https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2
-
Source reference
Unverified legacy reference
URL: https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-38c3-wv3c-v3xj
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.