Skip to main content

Microsoft Kiota EUVDEUVD-2026-25094

| CVE-2026-41134 HIGH
Code Injection (CWE-94)
2026-04-22 GitHub_M GHSA-2hx3-vp6r-mg3f
7.3
CVSS 4.0 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
7.3 HIGH
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

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

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
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

7
Analysis Generated
Apr 23, 2026 - 06:57 vuln.today
Patch available
Apr 22, 2026 - 22:02 EUVD
Patch released
Apr 22, 2026 - 21:23 nvd
Patch available
CVSS changed
Apr 22, 2026 - 21:22 NVD
7.3 (HIGH)
EUVD ID Assigned
Apr 22, 2026 - 21:01 euvd
EUVD-2026-25094
Analysis Generated
Apr 22, 2026 - 21:01 vuln.today
CVE Published
Apr 22, 2026 - 20:20 nvd
HIGH 7.3

DescriptionCVE.org

Kiota is an OpenAPI based HTTP Client code generator. Versions prior to 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.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.

AnalysisAI

Code injection in Microsoft Kiota versions prior to 1.31.1 allows attackers who control or tamper with OpenAPI descriptions to inject malicious code into generated HTTP client libraries. Exploitation requires developers to generate clients from untrusted or compromised OpenAPI specifications, then compile and execute the poisoned code. The attack chain culminates in arbitrary code execution within the context of applications using the tainted generated clients. CVSS 7.3 with local attack vector and user interaction required suggests lower immediate urgency, though EPSS data is unavailable. No public exploit code or active exploitation confirmed at time of analysis.

Technical ContextAI

Kiota is Microsoft's OpenAPI-based code generator that produces strongly-typed HTTP client libraries from API specifications. The vulnerability stems from insufficient output encoding when emitting literal values from OpenAPI documents into generated source code. CWE-94 (Improper Control of Generation of Code) indicates the root cause: user-controlled data from OpenAPI fields (property names, enum values, default values, path parameters, serialization keys) is incorporated into code templates without context-aware escaping. Attackers can embed string-breaking sequences and code fragments in malicious OpenAPI descriptions. When developers run Kiota against such descriptions, the generator produces source files containing injected code. The CPE string cpe:2.3:a:microsoft:kiota identifies all Kiota versions below 1.31.1 as vulnerable across multiple language output targets (C#, TypeScript, Java, Python, Go, PHP, Swift).

RemediationAI

Upgrade Kiota to version 1.31.1 or later from the official GitHub releases at github.com/microsoft/kiota/releases or via package managers (NuGet for .NET, npm for TypeScript tooling). After upgrading the generator, regenerate all existing HTTP client libraries as previously generated code may contain vulnerable output from earlier Kiota versions - the upgrade alone does not remediate deployed clients. Review OpenAPI description sources and implement integrity verification: download specifications over HTTPS with certificate validation, verify cryptographic signatures from API vendors when available, and maintain an allowlist of trusted API description repositories. As a compensating control until upgrade, restrict Kiota generation to a sandboxed environment separate from production development systems, and perform code review and static analysis on all generated client code before integration - though this is labor-intensive and error-prone compared to upgrading. Avoid generating clients from user-submitted or externally contributed OpenAPI files without thorough manual security review. For air-gapped environments where immediate upgrade is infeasible, implement process controls requiring security team approval before introducing new generated clients into the build pipeline.

Share

EUVD-2026-25094 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy