Security Digest · Vulnerability record

CVE-2026-59865: Microsoft Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`

Kiota is an OpenAPI based HTTP Client code generator.

CVSS 9.3 Critical EPSS 4.4% · p91

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 4.4%, percentile 91: FIRST’s model estimates a 4.4% chance of exploitation activity in the next 30 days, higher than 91% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes Microsoft.OpenApi.Kiota (NuGet) >= 1.30.0, < 1.32.5, fixed in 1.32.5; Microsoft.OpenApi.Kiota.Builder (NuGet) >= 1.30.0, < 1.32.5, fixed in 1.32.5; Microsoft.OpenApi.Kiota (NuGet) < 1.29.1, fixed in 1.29.1; Microsoft.OpenApi.Kiota.Builder (NuGet) < 1.29.1, fixed in 1.29.1. Check your lockfile, including transitive dependencies.

What it is

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. .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.

From the GitHub advisory

Summary

kiota info — the command developers run to learn which packages to install after generating a client — read the x-ms-kiota-info extension from the OpenAPI description and presented the spec-supplied dependencyInstallCommand (and dependency name/version) as the tool's own recommended install command, replacing kiota's normally-trusted suggestion. With an attacker-controlled or compromised description:

A developer who followed kiota's explicit instruction (run the suggested install command) executed attacker-controlled shell — command injection → RCE. The IDE-facing kiota info --json output, which the Kiota VS Code extension consumes to offer/run dependency installation, exposed the raw command string directly, so an "install dependencies" action in the IDE could run it automatically.

Confirmed on Kiota 1.32.4.

Details

Weakness type: CWE-94, CWE-829.

Product: Microsoft.OpenApi.Kiota (NuGet) · Assigned by: GitHub_M · Published: 2026-07-16

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
NuGetMicrosoft.OpenApi.Kiota>= 1.30.0, < 1.32.51.32.5
NuGetMicrosoft.OpenApi.Kiota.Builder>= 1.30.0, < 1.32.51.32.5
NuGetMicrosoft.OpenApi.Kiota< 1.29.11.29.1
NuGetMicrosoft.OpenApi.Kiota.Builder< 1.29.11.29.1
VendorProductAffected versions (per CVE record)
microsoftkiota>= 1.30.0, < 1.31.1, < 1.29.1

Severity scores

Scored byCVSSScoreVector
GitHub_M4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHub4.09.3 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
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 4.36% probability of exploitation activity in the next 30 days; percentile 91.

Timeline

  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-hq9q-27g5-qwpj published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-hq9q-27g5-qwpj github.com
  2. CVE.org record CVE-2026-59865 cve.org
  3. NVD entry CVE-2026-59865 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com

Critical NuGet advisories · Today’s Security Digest