CVE-2026-41134

Kiota is an OpenAPI based HTTP Client code generator. Versions prior to 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.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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:microsoft:kiota:*:*:*:*:*:*:*:*

History

14 May 2026, 21:23

Type Values Removed Values Added
First Time Microsoft
Microsoft kiota
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
References () https://github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f - () https://github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f - Exploit, Vendor Advisory
CPE cpe:2.3:a:microsoft:kiota:*:*:*:*:*:*:*:*

22 Apr 2026, 21:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-22 21:17

Updated : 2026-05-14 21:23


NVD link : CVE-2026-41134

Mitre link : CVE-2026-41134

CVE.ORG link : CVE-2026-41134


JSON object : View

Products Affected

microsoft

  • kiota
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')