CVE-2026-59862
HIGH 7.5CVSS 3.1Microsoft Kiota: Code Generation Literal Injection in Kiota Python Generator
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.
- Published
- 16 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-7f3j-j7jj-r3vr
- Sources
- NVDJSONOSV GHSA-7f3j-j7jj-r3vrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | NuGet | Microsoft.OpenAPI.Kiota | >= 1.30.0, < 1.32.0 | 1.32.0 |
| OSV | NuGet | Microsoft.OpenAPI.Kiota.Builder | >= 1.30.0, < 1.32.0 | 1.32.0 |
| OSV | NuGet | Microsoft.OpenApi.Kiota | < 1.29.1 | 1.29.1 |
| OSV | NuGet | Microsoft.OpenApi.Kiota.Builder | < 1.29.1 | 1.29.1 |
References
- https://github.com/microsoft/kiota/releases/tag/v1.32.0 · WEB
- https://github.com/microsoft/kiota/security/advisories/GHSA-7f3j-j7jj-r3vr · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59862 · ADVISORY
- https://github.com/microsoft/kiota · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 16 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Jul 2026)