> CVE-2026-54666 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-29 15:16
MODIFIED
2026-07-29 15:16
CVSS_SCORE V3
8.3
EPSS (Prob. Exploit)
0.48%
Top 59.7%
DATA SOURCES:
NVD 🔗 2026-07-29 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-10-29 OSV 🔗 2026-11-02

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
EXPLOITABILITY
1.6
IMPACT
6.0

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-74 CWE-94 CWE-1336

> CWE DETAILED DESCRIPTIONS

CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component - The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. | CWE-94: Improper Control of Generation of Code - The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. | CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine - The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

> GITHUB SECURITY ADVISORY

GHSA-w284-33mx-6g9v HIGH

swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies

AFFECTED PACKAGES:
NPM / swagger-typescript-api
<= 13.12.1
Fixed in: 13.12.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies

AFFECTED PACKAGES:
Unknown / Unknown
154 versions affected
ALIASES:
GHSA-w284-33mx-6g9v

> HISTORIQUE DES MODIFICATIONS

Première apparition
29/07/2026 15:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') - The product constructs all or part of a command, data structure, or record using externally...
Nouvelle valeur:
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component - The product constructs all or part of a command, data structure, or record using externally-influenced in...
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') - The product constructs all or part of a command, data structure, or record using externally...
Total des modifications: 2 Dernière mise à jour: 4 days ago

> REFERENCES

https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f80...
https://github.com/acacode/swagger-typescript-api/pull/1779
https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2
https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-w284-...
« BACK_TO_HOME