CVE-2026-59860
HIGH 8.7CVSS 4.0Microsoft Kiota: XML Doc-Comment Newline Breakout Code Injection
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.
- Published
- 16 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-3hrf-2gc2-mx32
- Sources
- NVDJSONOSV GHSA-3hrf-2gc2-mx32JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | NuGet | Microsoft.OpenApi.Kiota | >= 1.30.0, < 1.32.3 | 1.32.3 |
| OSV | NuGet | Microsoft.OpenApi.Kiota.Builder | >= 1.30.0, < 1.32.3 | 1.32.3 |
| OSV | NuGet | Microsoft.OpenApi.Kiota | < 1.29.1 | 1.29.1 |
| OSV | NuGet | Microsoft.OpenApi.Kiota.Builder | < 1.29.1 | 1.29.1 |
References
- https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44 · WEB
- https://github.com/microsoft/kiota/pull/7831 · WEB
- https://github.com/microsoft/kiota/releases/tag/v1.32.3 · WEB
- https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59860 · ADVISORY
- https://github.com/microsoft/kiota · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 16 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Jul 2026)