Code injection in Kiota Java and PHP generators via doc comments
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
Kiota from 0.5.0 before 1.35.0 has a code injection flaw in its Java and PHP doc-comment sanitizers. The sanitizers delete block-comment terminators instead of neutralizing them, so overlapping characters reform a terminator and move attacker-controlled text outside a generated comment (CWE-94). A developer or build pipeline that generates code from a malicious OpenAPI description, then compiles and loads the Java output or loads the PHP output, runs the injected code.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Microsoft | kiota | 0.5.0 to before 1.35.0 | 1.35.0 | Patch available | CNA |
| Microsoft | Microsoft.OpenApi.Kiota | 0.5.0 to before 1.35.0 | 1.35.0 | Patch available | CNA |
| Microsoft | Microsoft.OpenApi.Kiota.Builder | 0.5.0 to before 1.35.0 | 1.35.0 | Patch available | CNA |
| — | Microsoft.OpenApi.Kiota (NuGet) | 0.5.0 to before 1.35.0 | 1.35.0 | Patch available | GHSA-rm89-rhwj-9j92 |
| — | Microsoft.OpenApi.Kiota.Builder (NuGet) | 0.5.0 to before 1.35.0 | 1.35.0 | Patch available | GHSA-rm89-rhwj-9j92 |
- kiota VendorMicrosoft Affected 0.5.0 to before 1.35.0 Fixed in 1.35.0 Patch available CNA
- Microsoft.OpenApi.Kiota VendorMicrosoft Affected 0.5.0 to before 1.35.0 Fixed in 1.35.0 Patch available CNA
- Microsoft.OpenApi.Kiota.Builder VendorMicrosoft Affected 0.5.0 to before 1.35.0 Fixed in 1.35.0 Patch available CNA
- Microsoft.OpenApi.Kiota (NuGet) Vendor— Affected 0.5.0 to before 1.35.0 Fixed in 1.35.0 Patch available GHSA-rm89-rhwj-9j92
- Microsoft.OpenApi.Kiota.Builder (NuGet) Vendor— Affected 0.5.0 to before 1.35.0 Fixed in 1.35.0 Patch available GHSA-rm89-rhwj-9j92
Remediation
Upgrade the NuGet packages Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder to 1.35.0. The sources list no fixed version for kiota.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA kiota (microsoft) Fixed in 1.35.0
- Fix · CNA Microsoft.OpenApi.Kiota (microsoft) Fixed in 1.35.0
- Fix · CNA Microsoft.OpenApi.Kiota.Builder (microsoft) Fixed in 1.35.0
- Fix · GHSA-rm89-rhwj-9j92 Microsoft.OpenApi.Kiota (NuGet) Fixed in 1.35.0 Advisory →
- Fix · GHSA-rm89-rhwj-9j92 Microsoft.OpenApi.Kiota.Builder (NuGet) Fixed in 1.35.0 Advisory →
Timeline
- 2026-10-06 Threatist record created from CVE-2026-105796
- 2026-10-06 Alias added: GHSA-rm89-rhwj-9j92
- 2026-10-06 Fix available: NuGet/[email protected], NuGet/[email protected] · GHSA-rm89-rhwj-9j92
- 2026-10-06 CVSS score added · GHSA-rm89-rhwj-9j92
- 2026-10-06 Weakness changed · GHSA-rm89-rhwj-9j92
- 2026-10-06 6 new references · GHSA-rm89-rhwj-9j92
- 2026-10-09 CISA SSVC decision points changed
References
More Microsoft vulnerabilities
- TI-2026-42212 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-37256 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-26194 Windows Internet Key Exchange (IKE) Service Extensions Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-16982 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-36863 Windows Server Update Service (WSUS) Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-33671 Microsoft SharePoint Server Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-105796 · CVE Program
- CVE-2026-105796 · NVD
- FIRST EPSS
- GHSA-rm89-rhwj-9j92 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences