RCE in Microsoft Kiota
CVE-2026-59862
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 class: RCE (Remote Code Execution)
EPSS: 0.014 (69.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Microsoft Kiota — versions >= 1.30.0, < 1.31.1, < 1.29.1, < 1.32.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM)
- security-advisories@github.com (x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-59862?
- CVE-2026-59862 is a high-severity vulnerability in Microsoft Kiota, classified under Code Injection. CVSS score: 7.5/10. Published 2026-07-16.
- How severe is CVE-2026-59862?
- High severity. CVSS v3 base score is 7.5 out of 10.