CVE-2026-41134

HIGH CVSS 4.0: 7.3 EPSS 0.44%
Updated Oct 27, 2026
Microsoft
Parameter Value
CVSS 7.3 (HIGH)
Affected Versions before 1.31.1
Fixed In 1.31.1
Type CWE-94 (Code Injection)
Vendor Microsoft
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Microsoft Kiota
cpe:2.3:a:microsoft:kiota:*:*:*:*:*:*:*:*
— 1.31.1