CVE-2026-59866: microsoft kiota · Path Traversal
Affects microsoft kiotaSource CVE Database V5
Not known to be exploited · CVSS 9.3 Critical : upgrade to 1.31.1 or 1.29.1 as a priority.
Data as of 28 Nov 2026, 18:37 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 72% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.31.1, 1.29.1, 1.32.5
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.
What to do
Upgrade kiota to 1.31.1 or 1.29.1; Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder to 1.32.5; Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder to 1.29.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| microsoftkiota | Affected
| Fixed in
|
| microsoftkiota | Affected
| Fixed in
|
NuGetMicrosoft.OpenApi.Kiotapkg:nuget/Microsoft.OpenApi.KiotaOther threats | Affected
| Fixed in
|
NuGetMicrosoft.OpenApi.Kiotapkg:nuget/Microsoft.OpenApi.KiotaOther threats | Affected
| Fixed in
|
NuGetMicrosoft.OpenApi.Kiota.Builderpkg:nuget/Microsoft.OpenApi.Kiota.BuilderOther threats | Affected
| Fixed in
|
NuGetMicrosoft.OpenApi.Kiota.Builderpkg:nuget/Microsoft.OpenApi.Kiota.BuilderOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Microsoft Kiota to version 1.29.1, 1.32.5, or later. These versions include fixes that sanitize the clientClassName and clientNamespaceName values sourced from the x-ms-kiota-info extension, removing unsafe characters and path separators to prevent path traversal and code injection. Regenerate any affected clients after upgrading. No other mitigation is required as the issue is addressed by these official fixes.
Description
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, Kiota emitted x-ms-kiota-info clientClassName and clientNamespaceName values without identifier or path sanitization as both generated client class or namespace names and generated output path components when `kiota generate` ran without -c/--class-name, allowing an attacker-controlled or compromised OpenAPI description to write generated source outside the -o output directory and inject arbitrary text into generated class or namespace declarations. This issue is fixed in version 1.29.1 and 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.
References
- github.com/microsoft/kiota/security/advisories/GHSA-4vv7-jj25-4gh6 (opens in a new tab)
- github.com/microsoft/kiota/pull/7884 (opens in a new tab)
- github.com/microsoft/kiota/commit/dc812dbbf88ef7edf53a890d36b2f9d1460e947d (opens in a new tab)
- github.com/microsoft/kiota/releases/tag/v1.32.5 (opens in a new tab)