CVE-2026-59866
CriticalCVSS 9.3Exploitation Probability (EPSS)
Elevated risk69th percentile - higher than 69% of all known CVEs
Summary
A vulnerability in Kiota, an OpenAPI-based HTTP client code generator, prior to version 1.32.5 allows an attacker to inject unsanitized x-ms-kiota-info clientClassName and clientNamespaceName values. This can lead to writing generated source outside the intended output directory and injecting arbitrary text into class or namespace declarations.
Risk Assessment
The organization is at risk of overwriting or creating files outside the intended directory, potentially leading to system integrity compromise or injection of malicious code into generated applications.
Recommendation
Immediately update Kiota to version 1.32.5 or later, which includes SanitizeClientClassName and SanitizeClientNamespaceName functions to mitigate this vulnerability.
Original NVD description (English source)
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, Kiota emitted x-ms-kiota-info clientClassName and clientNamespaceName values without identifier or path sanitization as both generated client class or namespace names and generated output path components when `kiota generate` ran without -c/--class-name, allowing an attacker-controlled or compromised OpenAPI description to write generated source outside the -o output directory and inject arbitrary text into generated class or namespace declarations. This issue is fixed in version 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.

