{"id":82094,"date":"2026-07-16T18:46:35","date_gmt":"2026-07-16T15:16:35","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-59862-kiota-code-generation-literal-injection-in-the-python-generator\/"},"modified":"2026-07-16T18:46:35","modified_gmt":"2026-07-16T15:16:35","slug":"cve-2026-59862-kiota-code-generation-literal-injection-in-the-python-generator","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-59862-kiota-code-generation-literal-injection-in-the-python-generator\/","title":{"rendered":"CVE-2026-59862 &#8211; Kiota: Code Generation Literal Injection in the Python Generator"},"content":{"rendered":"<p>CVE ID :CVE-2026-59862<\/p>\n<p>  Published : July 16, 2026, 3:16 p.m. | 18\u00a0minutes ago<\/p>\n<p>  Description :Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota&#8217;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.32.0.<\/p>\n<p>  Severity: 7.5 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-59862 Published : July 16, 2026, 3:16 p.m. | 18\u00a0minutes ago Description :Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota&#8217;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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82094","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82094"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82094\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}