{"id":"CVE-2026-59862","revision":"0396df07bc884d1db24b9c4c60b132f8","records":[{"revision":"0396df07bc884d1db24b9c4c60b132f8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-59862","aliases":[],"title":"Kiota: Code Generation Literal Injection in the Python Generator","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.","state":0,"publishedAt":"2026-07-16T14:38:59.471+00:00","modifiedAt":"2026-08-17T15:02:15.729+00:00","affected":[{"ecosystem":"Vendor product","name":"kiota","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"microsoft\",\n                    \"product\": \"kiota\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.30.0, < 1.31.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 1.29.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/microsoft/kiota/security/advisories/GHSA-7f3j-j7jj-r3vr","https://github.com/microsoft/kiota/releases/tag/v1.32.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-59862","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-59862","identifiers":["CVE-2026-59862"]},"retained":false,"historicalAffected":[]}],"coverage":[]}