CVE-2026-59862
Full vulnerability record from the local CVENow database.
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.
Severity
HIGH
CVSS score
7.5
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-16 15:16:35.570000
Last modified
2026-10-24 20:10:00.137000
View original CVE JSON
{
"id": "CVE-2026-59862",
"sourceIdentifier": "[email protected]",
"published": "2026-07-16T15:16:35.570",
"lastModified": "2026-10-24T20:10:00.137",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Kiota es un generador de código de cliente HTTP basado en OpenAPI. Antes de la versión 1.32.0, el generador de Python de Kiota permitía que las descripciones de valores enumerados controladas por el atacante de x-ms-enum.values[].description fluyeran a través de KiotaBuilder.SetEnumOptions hacia Documentation.DescriptionTemplate y PythonConventionService.RemoveInvalidDescriptionCharacters sin saneamiento de nueva línea, permitiendo que los comentarios en línea generados se dividieran y ejecutaran código Python controlado por el atacante en el ámbito del módulo cuando se importaban los módulos generados. Este problema está solucionado en la versión 1.32.0."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "microsoft",
"product": "kiota",
"versions": [
{
"version": ">= 1.30.0, < 1.31.1",
"status": "affected"
},
{
"version": "< 1.29.1",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-17T03:56:36.677843Z",
"id": "CVE-2026-59862",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"references": [
{
"url": "https://github.com/microsoft/kiota/releases/tag/v1.32.0",
"source": "[email protected]"
},
{
"url": "https://github.com/microsoft/kiota/security/advisories/GHSA-7f3j-j7jj-r3vr",
"source": "[email protected]"
}
]
}