> CVE-2026-59861 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-16 15:16
MODIFIED
2026-07-16 15:16
CVSS_SCORE V3
7.5
EPSS (Prob. Exploit)
2.05%
Top 18.9%
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 Ruby generator embedded OpenAPI default fields, property names, and other schema-derived strings through CodeMethodWriter.cs and SanitizeForQuotedLiteral() in Writers/StringExtensions.cs into Ruby double-quoted literals without escaping #, allowing attacker-controlled #{expr}, #$var, or #@var interpolation markers to inject arbitrary Ruby code into generated model classes. 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-xg2h-5xr2-29jw HIGH

Microsoft Kiota: Code Generation Literal Injection in Kiota Ruby 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 Kiota Ruby Generator

AFFECTED PACKAGES:
Unknown / Unknown
155 versions affected
ALIASES:
GHSA-xg2h-5xr2-29jw

> 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/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0c...
https://github.com/microsoft/kiota/pull/7746
https://github.com/microsoft/kiota/releases/tag/v1.32.0
https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw
« BACK_TO_HOME