{"id":"CVE-2026-59860","published":"2026-07-16T14:34:24Z","modified":"2026-08-17T15:01:37Z","title":"Kiota: XML Doc-Comment Newline Breakout Code Injection","vendor":"Microsoft","product":"kiota","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01381,"percentile":0.72818,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/kiota/pull/7831","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/releases/tag/v1.32.3","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.56},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"kiota","versions":[">= 1.30.0, < 1.31.1","< 1.29.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-17T03:56:34.813340Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Microsoft.OpenApi.Kiota","vulnerableRanges":[">=1.30.0, <1.32.3","<1.29.1"],"patched":["1.32.3","1.29.1"],"from":["GHSA-3hrf-2gc2-mx32"],"provenance":"source"},{"ecosystem":"NuGet","package":"Microsoft.OpenApi.Kiota.Builder","vulnerableRanges":[">=1.30.0, <1.32.3","<1.29.1"],"patched":["1.32.3","1.29.1"],"from":["GHSA-3hrf-2gc2-mx32"],"provenance":"source"}],"summary":{"text":"Kiota, Microsoft's OpenAPI-based HTTP client code generator, has a code injection flaw in its C# XML documentation-comment output, where description and externalDocs fields taken from an OpenAPI document are written into single-line /// comments without stripping newline and Unicode line-terminator characters, affecting versions before 1.29.1 and 1.32.3. An attacker who can supply a crafted OpenAPI description can break out of the comment line and inject arbitrary C# code into generated clients, which requires user interaction for the generated code to be produced and compiled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:51Z"},"euvd":{"id":"EUVD-2026-44931","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41134","published":"2026-04-22","fixed":"1.31.1","kev":false,"link":{"from":"CVE-2026-41134","to":"CVE-2026-59860","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Microsoft.OpenApi.Kiota","fromFixed":"1.31.1","toFixed":"1.32.3","daysApart":85},{"kind":"version-step","provenance":"source","package":"NuGet:Microsoft.OpenApi.Kiota.Builder","fromFixed":"1.31.1","toFixed":"1.32.3","daysApart":85}]}},{"cve":"CVE-2026-59860","published":"2026-07-16","fixed":"1.32.3","kev":false},{"cve":"CVE-2026-59859","published":"2026-07-16","fixed":"1.32.4","kev":false,"link":{"from":"CVE-2026-59860","to":"CVE-2026-59859","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Microsoft.OpenApi.Kiota","fromFixed":"1.32.3","toFixed":"1.32.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"NuGet:Microsoft.OpenApi.Kiota.Builder","fromFixed":"1.32.3","toFixed":"1.32.4","daysApart":0}]}},{"cve":"CVE-2026-59863","published":"2026-07-16","fixed":"1.32.5","kev":false},{"cve":"CVE-2026-59864","published":"2026-07-16","fixed":"1.32.5","kev":false}],"package":"NuGet:Microsoft.OpenApi.Kiota"}}