CVE-2026-41134

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.

Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
CVSS v4
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 · source cna
Exploit chance (EPSS)
0.421%
chance of exploitation in the next 30 days
higher than 37% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2026-04-25

Timeline

  1. 2026-04-14GitHub advisory published (GHSA-2hx3-vp6r-mg3f)8 days before publication
  2. 2026-04-22Published by the CNA20:20 UTC
  3. 2026-04-25CISA SSVC decision recorded3 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-2hx3-vp6r-mg3f, affected packages:

PackageVulnerable versionsFixed in
NuGet Microsoft.OpenApi.Kiotabefore 1.29.11.29.1
NuGet Microsoft.OpenApi.Kiotafrom 1.30.0 before 1.31.11.31.1
NuGet Microsoft.OpenApi.Kiota.Builderbefore 1.29.11.29.1
NuGet Microsoft.OpenApi.Kiota.Builderfrom 1.30.0 before 1.31.11.31.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
microsoft kiotabefore 1.31.1fixed in 1.31.11.31.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources