CVE-2026-54666

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.
Configurations

No configuration.

History

23 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) swagger-typescript-api genera clientes API para Fetch o Axios a partir de una especificación OpenAPI. Antes de la versión 13.12.2, src/schema-routes/schema-routes.ts pasa las claves de ruta OpenAPI a través de parseRouteName a templates/default/procedure-call.ejs y templates/modular/procedure-call.ejs sin escapar la interpolación de literales de plantilla de JavaScript, permitiendo que una ruta controlada por un atacante que contenga ${...} se ejecute cuando se llama al método generado. Este problema está solucionado en la versión 13.12.2.

Information

Published : 2026-07-29 15:16

Updated : 2026-10-23 23:10


NVD link : CVE-2026-54666

Mitre link : CVE-2026-54666

CVE.ORG link : CVE-2026-54666


JSON object : View

Products Affected

No product.

CWE
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