CVE-2026-105796
published high CVSS 3.1 · 8.8Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| microsoft | — | kiota>= 0.5.0, < 1.35.0 | Affected | Not stated | GitHub_M |
| microsoft | — | Microsoft.OpenApi.Kiota>= 0.5.0, < 1.35.0 | Affected | Not stated | GitHub_M |
| microsoft | — | Microsoft.OpenApi.Kiota.Builder>= 0.5.0, < 1.35.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| microsoft | kiota | >= 0.5.0, < 1.35.0 (affected) | GitHub_M · cna |
| microsoft | Microsoft.OpenApi.Kiota | >= 0.5.0, < 1.35.0 (affected) | GitHub_M · cna |
| microsoft | Microsoft.OpenApi.Kiota.Builder | >= 0.5.0, < 1.35.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
4Provider assertions
2GitHub_M · cna
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4d04867fe4beea2435467701a9b5c3a9445245fc75560c1dff5d823e0ecda643
- Ingested
- 09 Oct 2026, 16:25:58 UTC
- Source record
- Official CVE record