This site currently shows sample data for demonstration.

Vulnerabilities

CVE-2026-54661 | BDVDB-2026-353513 Detail

acacodeswagger-typescript-api

Description#

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.

Impact#

Per CVSS v3.1: confidentiality impact high, integrity impact high, availability impact high. Attack vector: network.

Weaknesses#

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine

References#

Exploit#

No public exploit known

History#

  1. Version 1Record published in the CVE List.