Description
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.
Published: 2026-07-16
Score: 9.3 Critical
EPSS: 3.2% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Kiota, an OpenAPI-based HTTP client code generator, suffered from a command injection flaw in the way it handled the OpenAPI specification field x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand. Prior to version 1.32.5, the tool read the dependency install command supplied by the specification and presented it as the recommended command for installing dependencies. An attacker controlling or compromising the specification could embed arbitrary shell commands in that field. When users trusted and executed the suggested command—either manually or automatically via the Kiota VS Code extension’s kiota info --json dependency‑install flow—the injected commands were executed with the privileges of the user running Kiota, allowing full remote command execution on the local machine. This vulnerability is classified as CWE‑829 (Command Injection) and also involves CWE‑94 (Improper Input Sanitization) weaknesses.

Affected Systems

The vulnerability affects the Microsoft Kiota project. Versions older than 1.32.5 are vulnerable; version 1.32.5 and later contain the fix and are not affected. The advisory includes Microsoft Kiota as the sole impacted vendor.

Risk and Exploitability

The CVSS score of 9.3 reflects a high severity, with full adversary privileges when the command is executed. The EPSS score is 3%, indicating a low but non‑zero likelihood of exploitation, but the attacker would still need an attacker‑controlled OpenAPI specification and a user or extension that processes it. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit this via the Kiota command‑line interface or the VS Code extension if it auto‑executes dependency‑install commands, making it most dangerous in environments where untrusted specifications are processed without validation.

Generated by OpenCVE AI on July 31, 2026 at 01:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Kiota to version 1.32.5 or later to eliminate the command injection flaw.
  • If upgrading is not immediately possible, refrain from running "kiota info" on untrusted or externally supplied specifications.
  • For environments using the VS Code extension, disable automatic dependency‑install flows or manually review the dependencyInstallCommand before execution to prevent command injection.

Generated by OpenCVE AI on July 31, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hq9q-27g5-qwpj Microsoft Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
History

Wed, 29 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft kiota
Vendors & Products Microsoft
Microsoft kiota

Thu, 16 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
Weaknesses CWE-829
CWE-94
References
Metrics cvssV4_0

{'score': 9.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T18:26:17.378Z

Reserved: 2026-07-07T15:41:53.607Z

Link: CVE-2026-59865

cve-icon Vulnrichment

Updated: 2026-07-29T18:24:00.855Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T02:00:05Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')