CVE Catalog

CVE-2026-59866

CriticalCVSS 9.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.36%

69th percentile - higher than 69% of all known CVEs

Summary

Kiota before versions 1.29.1 and 1.32.5 did not sanitize clientClassName and clientNamespaceName values from OpenAPI descriptions, allowing generated source to be written outside the output directory and arbitrary text to be injected into class or namespace declarations.

Risk Assessment

A malicious OpenAPI description can lead to overwriting files outside the project directory or injecting malicious code into generated classes, potentially resulting in code execution during build or runtime.

Recommendation

Update Kiota to version 1.29.1 or 1.32.5, which includes fixes for class and namespace name sanitization.

Other vulnerabilities in Kiota

See all
Original NVD description (English source)

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS