Arbitrary Code Injection Affecting microsoft.openapi.kiota package, versions [,1.32.5)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.19% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-MICROSOFTOPENAPIKIOTA-18021360
  • published20 Jul 2026
  • disclosed16 Jul 2026
  • creditGal3m, mrostamipoor

Introduced: 16 Jul 2026

NewCVE-2026-59865  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Microsoft.OpenApi.Kiota to version 1.32.5 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the OpenApiKiotaExtension handling in LanguageInformation and kiota info output. An attacker can make a developer run attacker-controlled shell commands by supplying an OpenAPI document whose x-ms-kiota-info extension sets dependencyInstallCommand, which kiota info reads and presents as the recommended install command. The injected command is surfaced in both the human-readable kiota info guidance and the JSON output consumed by the Kiota VS Code extension, so a user who follows the install instruction or triggers dependency installation in the IDE executes arbitrary code on their workstation or CI host.

CVSS Base Scores

version 4.0
version 3.1