# CVE-2026-59860: Kiota: XML Doc-Comment Newline Breakout Code Injection

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-16T14:34:24.549Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-3hrf-2gc2-mx32
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- microsoft kiota: >= 1.30.0, < 1.31.1; < 1.29.1
- Microsoft.OpenApi.Kiota (NuGet): from 1.30.0 before 1.32.3; before 1.29.1
- Microsoft.OpenApi.Kiota.Builder (NuGet): from 1.30.0 before 1.32.3; before 1.29.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32> (exploit, web)
- <https://github.com/microsoft/kiota/pull/7831> (web)
- <https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44> (web)
- <https://github.com/microsoft/kiota/releases/tag/v1.32.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59860> (advisory)
- <https://github.com/microsoft/kiota> (package)

## Sources

- CVE List: [CVE-2026-59860](https://www.cve.org/CVERecord?id=CVE-2026-59860), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-3hrf-2gc2-mx32](https://github.com/advisories/GHSA-3hrf-2gc2-mx32), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-59860](https://nvd.nist.gov/vuln/detail/CVE-2026-59860), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59860 · Whole record: https://cve.day/CVE-2026-59860.json · Rebuilt by cve.day 2026-11-25T22:59:28.388Z
