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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (21st 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-MICROSOFTOPENAPIKIOTABUILDER-16115269
  • published21 Apr 2026
  • disclosed14 Apr 2026
  • creditThanatos Tian

Introduced: 14 Apr 2026

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

How to fix?

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

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the multiple writer sinks (such as serialization/deserialization keys, path/query parameter mappings, URL template metadata, enum/property metadata, and default value emission). An attacker can execute arbitrary code in generated client applications by supplying malicious values in an OpenAPI description that are injected into generated source code without proper escaping.

CVSS Base Scores

version 4.0
version 3.1