CVE catalog

CVE-2026-41134

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: seria

[CVE catalog]

Severity
High · CVSS 7.3CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.42% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
CpekiotaNot reported1.31.1fixed
CpekiotaNot reported1.31.1fixed
NugetMicrosoft.OpenApi.KiotaNot reported1.29.1fixed
NugetMicrosoft.OpenApi.Kiota.BuilderNot reported1.29.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpekiotacpeNot reported1.31.1Not reportedNot reportedNot reported
CpekiotacpeNot reported1.31.1Not reportedNVD-CVE-2026-41134Not reported
NugetMicrosoft.OpenApi.KiotanugetNot reported1.29.1Not reportedGHSA-2HX3-VP6R-MG3FNot reported
NugetMicrosoft.OpenApi.Kiota.BuildernugetNot reported1.29.1Not reportedGHSA-2HX3-VP6R-MG3FNot reported

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References