CVE-2026-59860: microsoft kiota · Code Injection
Affects microsoft kiotaSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 1.31.1 or 1.29.1 soon.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 1.3% 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.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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 28 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.3; 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 Kiota to version 1.32.3 or later. Additionally, regenerate or refresh any previously generated clients to replace vulnerable code with the fixed version that strips newline and Unicode line-terminator characters from documentation comment fields. Avoid generating clients from untrusted or tampered OpenAPI descriptions to reduce risk.
Description
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.3, Kiota is affected by a code-generation injection vulnerability in the C# XML documentation-comment sink (the description, externalDocs label, and externalDocs link fields emitted as /// … comments). When text from an OpenAPI description is written into single-line XML doc comments without stripping newline and Unicode line-terminator characters, an attacker can break out of the /// comment line and inject additional code into generated C# clients. This issue is fixed in version 1.29.1 and 1.32.3.
References
- github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32 (opens in a new tab)
- github.com/microsoft/kiota/pull/7831 (opens in a new tab)
- github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44 (opens in a new tab)
- github.com/microsoft/kiota/releases/tag/v1.32.3 (opens in a new tab)