CVE Catalog

CVE-2026-54661

HighCVSS 8.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.27%

19th percentile - higher than 19% of all known CVEs

Summary

swagger-typescript-api prior to 13.12.2 does not escape the server URL interpolation in the axios-http-client.ejs template. An attacker can supply a malicious OpenAPI spec that injects JavaScript code executed when HttpClient or Api is instantiated.

Risk Assessment

Code injection can lead to client-side compromise, data theft, or further attacks on internal systems.

Recommendation

Upgrade swagger-typescript-api to version 13.12.2 or later immediately.

Other vulnerabilities in swagger-typescript-api

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS