> CVE-2026-59862 [HIGH]

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

> DESCRIPTION

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota's Python generator let attacker-controlled enum value descriptions from x-ms-enum.values[].description flow through KiotaBuilder.SetEnumOptions into Documentation.DescriptionTemplate and PythonConventionService.RemoveInvalidDescriptionCharacters without newline sanitization, allowing generated inline comments to split and execute attacker-controlled Python code at module scope when generated modules were imported. This issue is fixed in version 1.32.0.

> 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:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EXPLOITABILITY
3.9
IMPACT
3.6

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-94

> CWE DETAILED DESCRIPTIONS

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.

> GITHUB SECURITY ADVISORY

GHSA-7f3j-j7jj-r3vr HIGH

Microsoft Kiota: Code Generation Literal Injection in Kiota Python Generator

AFFECTED PACKAGES:
NUGET / Microsoft.OpenApi.Kiota.Builder
< 1.29.1
Fixed in: 1.29.1
NUGET / Microsoft.OpenApi.Kiota
< 1.29.1
Fixed in: 1.29.1
NUGET / Microsoft.OpenAPI.Kiota.Builder
>= 1.30.0, < 1.32.0
Fixed in: 1.32.0
NUGET / Microsoft.OpenAPI.Kiota
>= 1.30.0, < 1.32.0
Fixed in: 1.32.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Kiota: Code Generation Literal Injection in the Python Generator

AFFECTED PACKAGES:
Unknown / Unknown
155 versions affected
ALIASES:
GHSA-7f3j-j7jj-r3vr

> HISTORIQUE DES MODIFICATIONS

Première apparition
16/07/2026 15:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-94: Improper Control of Generation of Code ('Code Injection') - The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not n...
Nouvelle valeur:
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 incorr...
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-94: Improper Control of Generation of Code ('Code Injection') - The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not n...
Total des modifications: 2 Dernière mise à jour: 5 days ago

> REFERENCES

https://github.com/microsoft/kiota/releases/tag/v1.32.0
https://github.com/microsoft/kiota/security/advisories/GHSA-7f3j-j7jj-r3vr
« BACK_TO_HOME