Skip to main content

Microsoft Kiota CVE-2026-59865

| EUVDEUVD-2026-44933 CRITICAL
Code Injection (CWE-94)
2026-07-16 GitHub_M GHSA-hq9q-27g5-qwpj
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Host malicious OpenAPI spec
  2. Delivery
    Victim runs kiota info against it
  3. Exploit
    Kiota reads x-ms-kiota-info dependencyInstallCommand
  4. Execution
    Presents injected command as recommended
  5. Persist
    Developer executes suggested command
  6. Impact
    Arbitrary code runs in developer context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to run kiota info (or the VS Code extension's kiota info --json dependency-install flow) against an attacker-controlled or compromised OpenAPI description containing a crafted x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand value or malicious dependency name/version, on a vulnerable Kiota version prior to 1.32.5. The key limiting factor is user interaction: code runs only when the developer actually executes the spec-supplied command Kiota recommends - either manually or by accepting the extension's install prompt - so a cautious developer who inspects or hand-writes the install command is not affected. No authentication to any Kiota service is needed (Kiota is a local developer tool), but the attacker must first get their malicious spec in front of the victim.

Impact

The vendor CVSS 4.0 base score is 9.3 with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, implying trivial remote unauthenticated full-impact exploitation. That UI:N rating is questionable: the description states execution occurs only 'when the suggested command was run manually or through the Kiota VS Code extension's dependency-install flow,' which is a clear user-interaction gate - a developer must both process the malicious spec and then run the recommended command. Treating this as user-interaction-required lowers the realistic severity toward high rather than critical. No EPSS score, KEV entry, or public POC is present in the provided data, so there is no evidence of active exploitation; the realistic risk is a targeted supply-chain / social-engineering vector against developers who consume third-party OpenAPI descriptions, not automatable mass exploitation. When triggered, the impact is genuine arbitrary command execution in the developer's context, so it warrants prompt patching despite the interaction requirement.

Exploit ScenarioDerived

An attacker publishes or compromises an OpenAPI description and embeds a malicious x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand (or crafted dependency name/version) containing shell metacharacters. A developer points kiota info or the VS Code extension at that spec, sees Kiota's authoritative-looking recommended install command, and runs it - executing the attacker's payload in their shell. No public POC is identified at time of analysis, but the injection path is straightforward given the removed code.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 3.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 16, 2026

Command injection in Microsoft Kiota before 1.32.5 lets a malicious or compromised OpenAPI description dictate the install command that Kiota presents to developers. When a developer runs kiota info (or the VS Code extension's kiota info --json dependency-install flow) against an attacker-controlled spec, Kiota reads the x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand field plus attacker-chosen dependency name/version values and surfaces them as its trusted recommended install command, achieving arbitrary command execution when that command is run. No public exploit has been identified at time of analysis and it is not in CISA KEV, but the fix explicitly removes the untrusted extension field.

RemediationAI

Vendor-released patch: upgrade to Kiota 1.32.5, which removes support for the x-ms-kiota-info dependencyInstallCommand extension so spec-supplied install commands are no longer read or emitted (fix in PR https://github.com/microsoft/kiota/pull/7883, commit e1d6d76c6eecbe50785429166faaf8c831e036c6; advisory https://github.com/microsoft/kiota/security/advisories/GHSA-hq9q-27g5-qwpj). Update the Kiota VS Code extension to the build incorporating 1.32.5 as well, since its kiota info --json dependency-install flow is an affected path. Until patched, do not run kiota info against OpenAPI descriptions from untrusted or unverified sources, and never blindly execute the install command Kiota suggests - inspect it and construct the dotnet add package / npm / pip install command yourself from the known-good dependency name and version. The trade-off of that workaround is purely manual effort; it does not disable code generation, only the convenience of the auto-suggested install command.

Affected VersionsENISA

kiota < 1.32.5

Affected Packages

nuget microsoft.openapi.kiota fix: 1.29.1, 1.32.5
nuget microsoft.openapi.kiota.builder fix: 1.29.1, 1.32.5
euvd kiota fix: 1.32.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kiota is Microsoft's OpenAPI-based HTTP client code generator (CLI plus a VS Code extension). The flaw sits in its handling of the proprietary x-ms-kiota-info OpenAPI extension, parsed in LanguageInformation.cs and OpenApiKiotaExtension.cs. Kiota trusted the dependencyInstallCommand template (e.g. dotnet add package {0} --version {1}) and interpolated the spec-supplied dependency name and version into it, then displayed the result as its own recommended command. This is a textbook CWE-94 (Improper Control of Generation of Code / Code Injection) issue: data from an untrusted document is promoted into an executable command string. The vendor fix (PR #7883) removes support for the extension entirely - Kiota no longer serializes or reads dependencyInstallCommand, treating it as untrusted, as confirmed by the added regression tests asserting the field is never emitted or parsed.

Know when Kiota gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Spec is fetched over the network (AV:N) but the victim must run kiota info and then execute the suggested command (UI:R); successful injection yields full RCE in the user's context so C/I/A:H, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 16, 2026 - 17:03 EUVD
CVE Published
Jul 16, 2026 - 14:43 cve.org
CRITICAL 9.3

DescriptionCVE.org

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, kiota info read x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand plus dependency name and version values from an OpenAPI description and presented the spec-supplied command as Kiota's recommended install command, allowing an attacker-controlled or compromised description to cause command injection when the suggested command was run manually or through the Kiota VS Code extension's kiota info --json dependency-install flow. This issue is fixed in version 1.32.5.

Executive ViewAI

Why It Matters

Microsoft Kiota (an SDK generation tool) contains a critical vulnerability that allows attackers to execute arbitrary commands on developer machines through malicious API specifications. Development teams using Kiota could be compromised when loading API specifications, creating a direct risk to code integrity and system security. The lack of available patches means organizations must implement immediate operational controls to reduce exposure.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the kiota info command and VS Code extension's dependency-install workflow across the organization; restrict Kiota usage to internally-managed or formally validated OpenAPI specifications only; implement security code review of any SDKs generated with Kiota, particularly focusing on dependency installation steps; consider transitioning to alternative SDK generation tools that do not read from untrusted extension fields.

Threat Intelligence Overview

EPSS Score
3.2%
Top 13% exploitable
Prevalence
Low
developer OpenAPI code-gen CLI/extension, limited to dev machines
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 3.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Kiota

View all
CVE-2026-59866 CRITICAL
9.3 Jul 16

Path traversal and code injection in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description write

CVE-2026-59864 CRITICAL
9.3 Jul 16

Path traversal in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description inject unvalidated `stat

CVE-2026-105796 HIGH
8.8 Oct 06

Code injection in Microsoft Kiota 0.5.0 through pre-1.35.0 allows attacker-controlled text embedded in an OpenAPI descri

CVE-2026-59859 HIGH
8.7 Jul 16

PHP code generation in Microsoft Kiota prior to 1.32.4 permits injection of arbitrary PHP code when the generator proces

CVE-2026-59860 HIGH
8.7 Jul 16

Code-generation injection in Microsoft Kiota's C# XML documentation-comment writer allows an attacker who controls or co

CVE-2026-59861 HIGH
7.5 Jul 16

Code injection in Microsoft Kiota Ruby code generator allows remote code execution through crafted OpenAPI specification

CVE-2026-59862 HIGH
7.5 Jul 16

Code injection in Microsoft Kiota's Python client generator (versions prior to 1.32.0) allows an attacker who controls a

CVE-2026-59867 HIGH
7.1 Jul 16

Build-time SSRF, remote file inclusion, and local file inclusion in Microsoft Kiota before 1.32.5 lets an attacker-contr

CVE-2026-41134 HIGH
7.3 Apr 22

Code injection in Microsoft Kiota versions prior to 1.31.1 allows attackers who control or tamper with OpenAPI descripti

CVE-2026-59863 HIGH
7.0 Jul 16

Arbitrary file write via path traversal in Microsoft Kiota (OpenAPI HTTP client/plugin code generator) before 1.32.5 all

CVE-2026-105795 LOW POC
3.1 Oct 06

Microsoft Kiota, the OpenAPI-based HTTP client code generator, fails to validate the x-ai-capabilities.response_semantic

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