Description
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.5.
Published: 2026-07-16
Score: 9.3 Critical
EPSS: 4.4% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Kiota is an OpenAPI based HTTP Client code generator. Prior to versions 1.29.1 and 1.32.5, the tool’s kiota info command read the OpenAPI specification field x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand and the associated dependency name and version values, presenting the spec‑supplied command as the recommended install command. An attacker who controls or compromises the specification can embed arbitrary shell commands in that field. If the suggested command is run manually or automatically by the Kiota VS Code extension’s kiota info --json dependency‑install flow, the injected commands execute with the privileges of the user running Kiota, delivering a full remote command execution vulnerability. The weakness is classified as CWE‑829 (Command Injection) and also involves CWE‑94 (Improper Input Sanitization).

Affected Systems

The vulnerability affects the Microsoft Kiota project. Versions prior to 1.29.1 and 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 of 4% indicates a low but non‑zero likelihood of exploitation, though 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 August 24, 2026 at 16: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 August 24, 2026 at 16: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

Mon, 17 Aug 2026 15:15: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. Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.5.

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-08-17T15:03:03.236Z

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

Link: CVE-2026-59865

cve-icon Vulnrichment

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

cve-icon NVD

Status : Deferred

Published: 2026-07-16T16:19:15.373

Modified: 2026-08-17T15:16:56.963

Link: CVE-2026-59865

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T17:00:04Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

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