CVE-2026-59865: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft kiota
CVE-2026-59865 is a critical code injection vulnerability in Microsoft Kiota, an OpenAPI-based HTTP client code generator. Versions prior to 1.32.5 of Kiota's 'kiota info' command read and present dependency install commands from an OpenAPI description without proper validation. This allows an attacker-controlled or compromised OpenAPI description to inject malicious commands, which may be executed manually or via the Kiota VS Code extension. The issue is fixed in version 1.32.5.
AI Analysis
Technical Summary
Microsoft Kiota versions before 1.32.5 contain a code injection vulnerability (CWE-94) in the 'kiota info' command. The command reads the 'x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand' field along with dependency name and version from an OpenAPI description and presents it as the recommended install command. Because this input is not properly sanitized, an attacker or compromised OpenAPI description can inject arbitrary commands that may be executed by users or through the Kiota VS Code extension's dependency-install flow. This vulnerability has a CVSS 4.0 score of 9.3 (critical). The vulnerability is fixed in Kiota version 1.32.5.
Potential Impact
An attacker who can supply or compromise an OpenAPI description used by Kiota can cause arbitrary command injection when the suggested install command is run manually or via the Kiota VS Code extension. This can lead to execution of malicious code on the user's system without requiring user interaction or privileges. The vulnerability is critical due to its potential for remote code execution with no user interaction or privileges required.
Mitigation Recommendations
Upgrade Microsoft Kiota to version 1.32.5 or later, where this code injection vulnerability is fixed. Avoid running dependency install commands derived from untrusted or unverified OpenAPI descriptions. Since no official patch link or advisory is provided, verify the upgrade through official Microsoft Kiota release notes or repositories.
CVE-2026-59865: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft kiota
Description
CVE-2026-59865 is a critical code injection vulnerability in Microsoft Kiota, an OpenAPI-based HTTP client code generator. Versions prior to 1.32.5 of Kiota's 'kiota info' command read and present dependency install commands from an OpenAPI description without proper validation. This allows an attacker-controlled or compromised OpenAPI description to inject malicious commands, which may be executed manually or via the Kiota VS Code extension. The issue is fixed in version 1.32.5.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Microsoft Kiota versions before 1.32.5 contain a code injection vulnerability (CWE-94) in the 'kiota info' command. The command reads the 'x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand' field along with dependency name and version from an OpenAPI description and presents it as the recommended install command. Because this input is not properly sanitized, an attacker or compromised OpenAPI description can inject arbitrary commands that may be executed by users or through the Kiota VS Code extension's dependency-install flow. This vulnerability has a CVSS 4.0 score of 9.3 (critical). The vulnerability is fixed in Kiota version 1.32.5.
Potential Impact
An attacker who can supply or compromise an OpenAPI description used by Kiota can cause arbitrary command injection when the suggested install command is run manually or via the Kiota VS Code extension. This can lead to execution of malicious code on the user's system without requiring user interaction or privileges. The vulnerability is critical due to its potential for remote code execution with no user interaction or privileges required.
Mitigation Recommendations
Upgrade Microsoft Kiota to version 1.32.5 or later, where this code injection vulnerability is fixed. Avoid running dependency install commands derived from untrusted or unverified OpenAPI descriptions. Since no official patch link or advisory is provided, verify the upgrade through official Microsoft Kiota release notes or repositories.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:41:53.607Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a58f9c068715ace434105ee
Added to database: 07/16/2026, 15:33:20 UTC
Last enriched: 07/16/2026, 15:47:52 UTC
Last updated: 07/16/2026, 22:51:56 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.