Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious OpenAPI spec
-
DeliveryVictim runs kiota info against it
-
ExploitKiota reads x-ms-kiota-info dependencyInstallCommand
-
ExecutionPresents injected command as recommended
-
PersistDeveloper executes suggested command
-
ImpactArbitrary 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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.
Path traversal and code injection in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description write
Path traversal in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description inject unvalidated `stat
Code injection in Microsoft Kiota 0.5.0 through pre-1.35.0 allows attacker-controlled text embedded in an OpenAPI descri
PHP code generation in Microsoft Kiota prior to 1.32.4 permits injection of arbitrary PHP code when the generator proces
Code-generation injection in Microsoft Kiota's C# XML documentation-comment writer allows an attacker who controls or co
Code injection in Microsoft Kiota Ruby code generator allows remote code execution through crafted OpenAPI specification
Code injection in Microsoft Kiota's Python client generator (versions prior to 1.32.0) allows an attacker who controls a
Build-time SSRF, remote file inclusion, and local file inclusion in Microsoft Kiota before 1.32.5 lets an attacker-contr
Code injection in Microsoft Kiota versions prior to 1.31.1 allows attackers who control or tamper with OpenAPI descripti
Arbitrary file write via path traversal in Microsoft Kiota (OpenAPI HTTP client/plugin code generator) before 1.32.5 all
Microsoft Kiota, the OpenAPI-based HTTP client code generator, fails to validate the x-ai-capabilities.response_semantic
EUVD-2026-44933
GHSA-hq9q-27g5-qwpj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB