CVE-2026-59860 Details
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.
A code-generation injection vulnerability has been identified in Microsoft Kiota versions prior to 1.32.3. This issue arises in the C# XML documentation-comment processing, where certain OpenAPI description texts can disrupt the intended comment structure. Specifically, newline and Unicode line-terminator characters are not properly removed before the text is written into single-line XML doc comments. As a result, an attacker could escape the comment context and inject arbitrary code into the generated C# client. The vulnerability is only exploitable when the OpenAPI description comes from an untrusted source or has been compromised.
Upgrade to Kiota version 1.32.3 or later. After upgrading, regenerate any previously generated clients to ensure the injected code is removed and replaced with the updated, secure output.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 16, 2026CISA-ADP
Assessed Jul 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44 | [email protected] | Source CodeVendor |
| https://github.com/microsoft/kiota/pull/7831 | [email protected] | Source CodeVendor |
| https://github.com/microsoft/kiota/releases/tag/v1.32.3 | [email protected] | Release NotesVendor |
| https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Microsoft Kiota | < 1.32.3 (semver) |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Aug 17, 2026 | CVE Modified | [email protected] |
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | CVE Modified | CISA-ADP |
| Jul 16, 2026 | CVE Modified | CISA-ADP |
| Jul 16, 2026 | New CVE Received | [email protected] |
Volerion