CVE-2026-41134: Kiota: Code Generation Literal Injection
Noroxi assessment
Priority: Monitor (action score 29/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.42% (FIRST EPSS).
- Someone with local access to the system can trigger it. No account or password is required. No special conditions are required; it is repeatable.
- Fixed version: Microsoft.OpenApi.Kiota (NuGet) 1.31.1, 1.29.1; Microsoft.OpenApi.Kiota.Builder (NuGet) 1.31.1, 1.29.1.
Low priority for now. Upgrade to Microsoft.OpenApi.Kiota (NuGet) 1.31.1, 1.29.1; Microsoft.OpenApi.Kiota.Builder (NuGet) 1.31.1, 1.29.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Apr 22, 2026
- Updated
- Oct 26, 2026
- EPSS
- 0.4% · 36th percentile
- CWE
- CWE-94
Report tools
Action score
29
Monitor
Low priority for now.
- CVSS
- 29 / 40 · 7.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 7.3
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| microsoft | kiota | cpe:2.3:a:microsoft:kiota |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- microsoft kiotabefore 1.31.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
microsoft kiota
- >= 1.30.0, < 1.31.1, < 1.29.1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| NuGet | Microsoft.OpenApi.Kiota | from 1.30.0 · before 1.31.1 | 1.31.1 |
| NuGet | Microsoft.OpenApi.Kiota | before 1.29.1 | 1.29.1 |
| NuGet | Microsoft.OpenApi.Kiota.Builder | from 1.30.0 · before 1.31.1 | 1.31.1 |
| NuGet | Microsoft.OpenApi.Kiota.Builder | before 1.29.1 | 1.29.1 |
Same product
microsoft: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-59865Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`38Monitor
- CVE-2026-59866Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName37Monitor
- CVE-2026-59864Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions37Monitor
Published before and after this one in the same product
- Later →CVE-2026-59859Jul 16, 2026 · Kiota: Code Generation Literal Injection in the PHP Generator34Monitor
- Later →CVE-2026-59860Jul 16, 2026 · Kiota: XML Doc-Comment Newline Breakout Code Injection34Monitor
- Later →CVE-2026-59861Jul 16, 2026 · Kiota: Code Generation Literal Injection in Kiota Ruby Generator31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| NuGet:Microsoft.OpenApi.Kiota | 1.29.1 | Package registry (OSV) |
| NuGet:Microsoft.OpenApi.Kiota | 1.31.1 | Package registry (OSV) |
| NuGet:Microsoft.OpenApi.Kiota.Builder | 1.29.1 | Package registry (OSV) |
| NuGet:Microsoft.OpenApi.Kiota.Builder | 1.31.1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2026-5986585 days apartKiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`38Monitor
- CVE-2026-105796167 days apartKiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators35Monitor
- CVE-2026-5985985 days apartKiota: Code Generation Literal Injection in the PHP Generator34Monitor
- CVE-2026-5986085 days apartKiota: XML Doc-Comment Newline Breakout Code Injection34Monitor
- CVE-2026-5986185 days apartKiota: Code Generation Literal Injection in Kiota Ruby Generator31Monitor
- CVE-2026-5986285 days apartKiota: Code Generation Literal Injection in the Python Generator30Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- P
- Scope
- X
Weakness class (CWE)
CWE-94 · Improper Control of Generation of Code ('Code Injection')CVSS vector
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/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
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →