CVE-2026-105796 · GHSA-rm89-rhwj-9j92
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
- Risk score
- 80/100
- CVSS
- 8.8 v3.1
- Exploit chance (30 days)
- 0.9%
- Published
- 6 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 docu…
- Affected
- Microsoft.OpenApi.Kiota (nuget) >= 0.5.0, < 1.35.0; Microsoft.OpenApi.Kiota.Builder (nuget) >= 0.5.0, < 1.35.0
- Fix
- Upgrade Microsoft.OpenApi.Kiota to 1.35.0; Microsoft.OpenApi.Kiota.Builder to 1.35.0 or later.
- Exploitation
- No known exploitation
Why it is Amber
- CVSS 8.8 high
- Remotely exploitable without logging in
- On your watchlist: php, NuGet
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| Microsoft.OpenApi.Kiota | nuget | >= 0.5.0, < 1.35.0 | 1.35.0 |
| Microsoft.OpenApi.Kiota.Builder | nuget | >= 0.5.0, < 1.35.0 | 1.35.0 |
References
- https://github.com/advisories/GHSA-rm89-rhwj-9j92
- https://github.com/microsoft/kiota/security/advisories/GHSA-rm89-rhwj-9j92
- https://nvd.nist.gov/vuln/detail/CVE-2026-105796
- https://github.com/microsoft/kiota/pull/8017
- https://github.com/microsoft/kiota/commit/68f33b865be9273464a6efbbe17379760e51f1a4
- https://github.com/microsoft/kiota/releases/tag/v1.35.0
- https://github.com/advisories/GHSA-rm89-rhwj-9j92
Original 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.
Last activity 6 Oct 2026. Patch Forecast updates every hour.