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

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.36%, higher than 92% of CVEs (2026-11-30)
- Published: 2026-07-16T14:43:40.058Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-hq9q-27g5-qwpj
- Weaknesses: CWE-94, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- microsoft kiota: >= 1.30.0, < 1.31.1; < 1.29.1
- Microsoft.OpenApi.Kiota (NuGet): from 1.30.0 before 1.32.5; before 1.29.1
- Microsoft.OpenApi.Kiota.Builder (NuGet): from 1.30.0 before 1.32.5; before 1.29.1

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/microsoft/kiota/security/advisories/GHSA-hq9q-27g5-qwpj> (web)
- <https://github.com/microsoft/kiota/pull/7883> (web)
- <https://github.com/microsoft/kiota/commit/e1d6d76c6eecbe50785429166faaf8c831e036c6> (web)
- <https://github.com/microsoft/kiota/releases/tag/v1.32.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59865> (advisory)
- <https://github.com/microsoft/kiota> (package)

## Sources

- CVE List: [CVE-2026-59865](https://www.cve.org/CVERecord?id=CVE-2026-59865), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-hq9q-27g5-qwpj](https://github.com/advisories/GHSA-hq9q-27g5-qwpj), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-59865](https://nvd.nist.gov/vuln/detail/CVE-2026-59865), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59865 · Whole record: https://cve.day/CVE-2026-59865.json · Rebuilt by cve.day 2026-11-25T22:59:28.394Z
