---
id: CVE-2026-105796
title: Kiota is an OpenAPI based HTTP Client code generator
summary: >-
  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
  refor…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: Microsoft
product: Microsoft.OpenApi.Kiota
affected:
  - 'Microsoft.OpenApi.Kiota >= 0.5.0, < 1.35.0'
  - 'Microsoft.OpenApi.Kiota.Builder >= 0.5.0, < 1.35.0'
patched:
  - Microsoft.OpenApi.Kiota 1.35.0
  - Microsoft.OpenApi.Kiota.Builder 1.35.0
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T16:00:36.547'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105796'
references:
  - url: >-
      https://github.com/microsoft/kiota/commit/68f33b865be9273464a6efbbe17379760e51f1a4
    label: security-advisories@github.com
  - url: 'https://github.com/microsoft/kiota/pull/8017'
    label: security-advisories@github.com
  - url: 'https://github.com/microsoft/kiota/releases/tag/v1.35.0'
    label: security-advisories@github.com
  - url: 'https://github.com/microsoft/kiota/security/advisories/GHSA-rm89-rhwj-9j92'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105796'
  - url: 'https://github.com/advisories/GHSA-rm89-rhwj-9j92'
tags:
  - nvd
  - ghsa
  - nuget
  - cve.org
aliases:
  - GHSA-rm89-rhwj-9j92
ecosystem: nuget
ingestedAt: '2026-10-06T15:01:49.305Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-105796)

Affected packages:

- `Microsoft.OpenApi.Kiota >= 0.5.0, < 1.35.0`
- `Microsoft.OpenApi.Kiota.Builder >= 0.5.0, < 1.35.0`

Patched in:

- `Microsoft.OpenApi.Kiota 1.35.0`
- `Microsoft.OpenApi.Kiota.Builder 1.35.0`

Source: https://github.com/advisories/GHSA-rm89-rhwj-9j92
