CVE-2026-41134 json
Kiota: Code Generation Literal Injection
published 2026-04-14 6 mo ago modified 2026-10-26 13 d ago also GHSA-2hx3-vp6r-mg3f , EUVD-2026-25094
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 36%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Microsoft.OpenApi.Kiota 1.29.1, 1.31.1
- nuget Microsoft.OpenApi.Kiota.Builder 1.29.1, 1.31.1
- microsoft kiota 1.31.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.42% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.3 | 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 |
| CNA | 4.0 | 7.3 | 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 |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 0.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Microsoft.OpenApi.Kiota | >=1.30.0, <1.31.1 <1.29.1 |
1.31.1 1.29.1 |
| nuget | Microsoft.OpenApi.Kiota.Builder | >=1.30.0, <1.31.1 <1.29.1 |
1.31.1 1.29.1 |
Affected products
- microsoft kiota
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-41134
advisory
-
github.com
/microsoft/kiota
package
Sources
- CVE List CVE-2026-41134
- GitHub Advisory GHSA-2hx3-vp6r-mg3f
- NVD CVE-2026-41134
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.