# CVE-2026-41134: Kiota: Code Generation Literal Injection

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- 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): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T23:39:41.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-2hx3-vp6r-mg3f
- 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. 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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:3.1 0.0 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41134> (advisory)
- <https://github.com/microsoft/kiota> (package)

## Sources

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

---

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