CVE-2026-41134Microsoft Kiota
High 7.3
Follow: this CVE · Microsoft · Microsoft Kiota We alert you by email or Slack (account required).
- Priority
- 44
- CVSS 4.0
- 7.3
- EPSS
- —
- Auth required
- Yes
- Published
- Apr 22, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Windows
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:L/AC:L/AT:P/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
What happens
Kiota is an OpenAPI based HTTP Client code generator. Versions prior to 1.29.1 and 1.31.1 are affected by a code-generation literal injection vulnerability in multiple writer sinks (for example: serialization/deserialization keys, path/query parameter mappings, URL template metadata, enum/property metadata, and default value emission). When malicious values from an OpenAPI description are emitted into generated source without context-appropriate escaping, an attacker can break out of string literals and inject additional code into generated clients. This issue is only practically exploitable when the OpenAPI description used for generation is from an untrusted source, or a normally trusted OpenAPI description has been compromised/tampered with. Only generating from trusted, integrity-protected API descriptions significantly reduces the risk. To remediate the issue, upgrade Kiota to 1.29.1, 1.31.1, or later and regenerate/refresh existing generated clients as a precaution. Refreshing generated clients ensures previously generated vulnerable code is replaced with hardened output.
What to do
- Apply the vendor's security update for Kiota.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | Microsoft.OpenApi.Kiota |
≥ 1.30.0 < 1.31.1 |
1.31.1 |
dotnet add package Microsoft.OpenApi.Kiota --version 1.31.1 |
| NuGet | Microsoft.OpenApi.Kiota |
< 1.29.1 |
1.29.1 |
dotnet add package Microsoft.OpenApi.Kiota --version 1.29.1 |
| NuGet | Microsoft.OpenApi.Kiota.Builder |
≥ 1.30.0 < 1.31.1 |
1.31.1 |
dotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.31.1 |
| NuGet | Microsoft.OpenApi.Kiota.Builder |
< 1.29.1 |
1.29.1 |
dotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.29.1 |
Per OSV / GitHub Advisories (GHSA-2hx3-vp6r-mg3f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| microsoft | kiota | < 1.31.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory