CVE-2026-59866: Vulnerability in Microsoft.OpenApi.Kiota

Critical. Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, Kiota emitted x-ms-kiota-info clientClassName and clientNamespaceName values without identifier or path sanitization as both generated client class or namespace names and generated output path components when kiota generate ran without -c/--class-name, allowing an attacker-controlled or compromised OpenAPI description to write...

NuGet, CWE-22, CWE-94

Exploitation
None confirmed
Severity
9.3 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-4vv7-jj25-4gh6
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-22, CWE-94
Published
16 Jul 2026
Last change
24 Oct 2026
Ecosystem
NuGet

Affected packages

Vulnerable version ranges and fixed releases

  • Microsoft.OpenApi.Kiota NuGet, Affected from 1.30.0 before 1.32.5. Fixed in 1.32.5
  • Microsoft.OpenApi.Kiota.Builder NuGet, Affected from 1.30.0 before 1.32.5. Fixed in 1.32.5

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes