CVE-2026-41134 Details
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.
A code-generation literal injection vulnerability has been identified in Kiota, an OpenAPI-based HTTP client code generator. This vulnerability affects versions prior to 1.31.1 and arises in multiple writer sinks, such as serialization and deserialization keys, path and query parameter mappings, URL template metadata, enum and property metadata, and default value emission. The issue occurs when malicious values from an OpenAPI description are injected into the generated source without proper escaping, allowing an attacker to break out of string literals and insert additional code into the generated clients. The vulnerability is only practically exploitable if the OpenAPI description used for generation is from an untrusted source or has been compromised. To mitigate this risk, it is recommended to generate clients from trusted, integrity-protected API descriptions.
Upgrade Kiota to version 1.31.1 or later. After upgrading, regenerate or refresh existing generated clients to replace any previously generated vulnerable code with the updated, secure version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| microsoft kiota | < 1.31.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Aug 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 14, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | New CVE Received | [email protected] |