Vulnerability Description
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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/microsoft/kiota/releases/tag/v1.32.0
- https://github.com/microsoft/kiota/security/advisories/GHSA-7f3j-j7jj-r3vr
FAQ
What is CVE-2026-59862?
CVE-2026-59862 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 thro...
How severe is CVE-2026-59862?
CVE-2026-59862 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-59862?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.