CVE Catalog

CVE-2026-59862

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.02%

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

Summary

Kiota before versions 1.29.1 and 1.32.0 in the Python generator did not sanitize enum value descriptions, allowing Python code injection into generated comments that could be executed when modules are imported.

Risk Assessment

A malicious OpenAPI description can lead to arbitrary Python code execution when generated modules are imported, potentially resulting in full system compromise.

Recommendation

Update Kiota to version 1.29.1 or 1.32.0 to get enum description sanitization fixes.

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.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.29.1 and 1.32.0.

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