# CVE-2026-105796: Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-01)
- Published: 2026-10-06T14:21:42.684Z
- Modified: 2026-10-09T02:16:54.973Z
- Also known as: GHSA-rm89-rhwj-9j92
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- microsoft kiota: >= 0.5.0, < 1.35.0
- microsoft Microsoft.OpenApi.Kiota: >= 0.5.0, < 1.35.0
- microsoft Microsoft.OpenApi.Kiota.Builder: >= 0.5.0, < 1.35.0
- Microsoft.OpenApi.Kiota (NuGet): from 0.5.0 before 1.35.0
- Microsoft.OpenApi.Kiota.Builder (NuGet): from 0.5.0 before 1.35.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/microsoft/kiota/security/advisories/GHSA-rm89-rhwj-9j92> (web)
- <https://github.com/microsoft/kiota/pull/8017> (web)
- <https://github.com/microsoft/kiota/commit/68f33b865be9273464a6efbbe17379760e51f1a4> (web)
- <https://github.com/microsoft/kiota/releases/tag/v1.35.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-105796> (advisory)
- <https://github.com/microsoft/kiota> (package)

## Sources

- CVE List: [CVE-2026-105796](https://www.cve.org/CVERecord?id=CVE-2026-105796), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-rm89-rhwj-9j92](https://github.com/advisories/GHSA-rm89-rhwj-9j92), CC-BY-4.0, modified 2026-10-06
- NVD: [CVE-2026-105796](https://nvd.nist.gov/vuln/detail/CVE-2026-105796), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2026-105796 · Whole record: https://cve.day/CVE-2026-105796.json · Rebuilt by cve.day 2026-11-25T22:59:42.359Z
