Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
Kiota code generator can insert malicious code into C# client
published 3 days ago
Summary
The Kiota tool that creates C# client code from OpenAPI specifications can embed attacker-controlled text into the generated source files. This allows malicious code to be added to the client applications that are built from those files. Upgrade Kiota to version 1.29.1 or later (or 1.32.3 for newer releases) to stop the issue.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Debian:13 | docker hardened images | apicurio-registry-ui-3.2 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | apicurio-registry-ui-3.3 | All versions |
Original advisory text
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.3, Kiota is affected by a…
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
- https://scout.docker.com/v/DHI-s6ku-nkwl-k52z-tzuq Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-59860 Vendor Advisory
- https://github.com/advisories/GHSA-3hrf-2gc2-mx32 Vendor Advisory
- https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32 Vendor Advisory
- https://github.com/microsoft/kiota/pull/7831 Patch
- https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca... Patch
- https://github.com/microsoft/kiota/releases/tag/v1.32.3 URL
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Timeline
Published18 Nov 2026
Updated18 Nov 2026
First seen18 Nov 2026
Sources
DHI-s6ku-nkwl-k52z-tzuq · OSV
Track software like this
Free during beta