Arbitrary Code Injection Affecting microsoft.openapi.kiota.builder package, versions [0.5.0,1.35.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.9% (59th 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-MICROSOFTOPENAPIKIOTABUILDER-21717172
  • published26 Oct 2026
  • disclosed6 Oct 2026
  • creditUnknown

Introduced: 6 Oct 2026

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

How to fix?

Upgrade Microsoft.OpenApi.Kiota.Builder to version 1.35.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the sanitization process for OpenAPI descriptions. An attacker can execute arbitrary code in the context of the consuming application or build environment by supplying a crafted OpenAPI description that causes the emission of attacker-controlled Java or PHP source code outside of generated documentation comments. This is only exploitable if a developer or build pipeline generates a client from a malicious description and subsequently compiles and loads the Java output, or loads the PHP output.

Workaround

This vulnerability can be mitigated by generating clients only from trusted, integrity-protected OpenAPI descriptions, reviewing generated Java and PHP source before compiling, loading, or deploying it, and restricting the privileges and secrets available to generation and build environments.

CVSS Base Scores

version 4.0
version 3.1