Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Microsoft.OpenApi.Kiota.Builder
  4. ›
  5. CVE-2026-105796

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

October 6, 2026

An attacker who controls or tampers with an OpenAPI description can cause Kiota to emit attacker-controlled Java or PHP source outside a generated documentation comment. The affected sanitizers remove comment terminators rather than neutralizing them, allowing a terminator to reform from overlapping characters or from subsequent normalization. The Java sanitizer also removes non-ASCII characters after removing terminators, which can create a new terminator.

Exploitation requires a developer or build pipeline to generate a client from the malicious description and subsequently compile and load the Java output, or load the PHP output. Code executes in the consuming application’s or build environment’s security context, not merely because Kiota reads the description.

References

  • github.com/advisories/GHSA-rm89-rhwj-9j92
  • github.com/microsoft/kiota/commit/68f33b865be9273464a6efbbe17379760e51f1a4
  • github.com/microsoft/kiota/pull/8017
  • github.com/microsoft/kiota/releases/tag/v1.35.0
  • github.com/microsoft/kiota/security/advisories/GHSA-rm89-rhwj-9j92
  • nvd.nist.gov/vuln/detail/CVE-2026-105796

Code Behaviors & Features

Detect and mitigate CVE-2026-105796 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.5.0 before 1.35.0

Fixed versions

  • 1.35.0

Solution

Upgrade to version 1.35.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

nuget/Microsoft.OpenApi.Kiota.Builder/CVE-2026-105796.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.