PoC Monitor
← All CVEs
CVE-2026-59862published 16 Jul 2026 14:38 UTCData: JSON · API

Kiota

Kiota: Code Generation Literal Injection in the 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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

microsoft kiota
  • >= 1.30.0, < 1.31.1
  • < 1.29.1

Fixed in 1.31.1, 1.29.1

Mitigation

Upgrade kiota to 1.31.1 or 1.29.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published16 Jul 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.