High severity · published Oct 6, 2026
CVE-2026-105796
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
8.8
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MI
Microsoft.OpenApi.Kiota · microsoft
>= 0.5.0, < 1.35.0 · source: vendor
MI
Microsoft.OpenApi.Kiota.Builder · microsoft
>= 0.5.0, < 1.35.0 · source: vendor
KI
kiota · microsoft
>= 0.5.0, < 1.35.0 · source: vendor
Affected product
KI
kiota
microsoft
More from kiota
9.3
CVE-2026-59866
Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName
9.3
CVE-2026-59864
Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions
9.3
CVE-2026-59865
Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
8.7
CVE-2026-59859
Kiota: Code Generation Literal Injection in the PHP Generator
8.7
CVE-2026-59860
Kiota: XML Doc-Comment Newline Breakout Code Injection