[ CVE-2026-105796 · Published 6 Oct 2026 ]

Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators

CVSS 8.8 EPSS <1%Fix available

[ Description ]Official description

Kiota is an OpenAPI based HTTP Client code generator. From 0.5.0 until 1.35.0, Kiota's Java and PHP documentation-comment sanitizers delete block-comment terminators rather than neutralizing them, allowing overlapping characters to reform a terminator and place attacker-controlled OpenAPI text outside a generated documentation comment. The Java sanitizer also removes non-ASCII characters after deleting terminators, which can create a new terminator during normalization. Exploitation requires a developer or build pipeline to generate source from the malicious description and then compile and load the Java output or load the PHP output, after which injected code executes in the consuming application or build environment context. The version range is based on the Java defect and does not assert that PHP generation existed in every affected release. This issue is fixed in version 1.35.0.

[ Fixes ]Fixes and patches

  • Microsoft.OpenApi.Kiota 1.35.0Fixed version · GitHub Advisories · nuget package Microsoft.OpenApi.Kiota: upgrade to 1.35.0 or later (affected >= 0.5.0, < 1.35.0)
  • Microsoft.OpenApi.Kiota.Builder 1.35.0Fixed version · GitHub Advisories · nuget package Microsoft.OpenApi.Kiota.Builder: upgrade to 1.35.0 or later (affected >= 0.5.0, < 1.35.0)

[ Packages ]Affected open-source packages

  • Microsoft.OpenApi.Kiota nugetAffected >= 0.5.0, < 1.35.0 · fixed in 1.35.0 · GHSA-rm89-rhwj-9j92
  • Microsoft.OpenApi.Kiota.Builder nugetAffected >= 0.5.0, < 1.35.0 · fixed in 1.35.0 · GHSA-rm89-rhwj-9j92