Live threats

All CVEs / microsoft

CVE-2026-59866microsoft kiota

Critical 9.3 No auth needed

Priority
71
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Jul 16, 2026
Updated
Oct 24, 2026
Category
Application · Windows
Weakness (CWE)
CWE-22, CWE-94
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
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

What happens

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 generated source outside the -o output directory and inject arbitrary text into generated class or namespace declarations. This issue is fixed in version 1.29.1 and 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.

Original NVD text.

What to do

  1. Apply the vendor's security update for kiota.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
NuGet Microsoft.OpenApi.Kiota ≥ 1.30.0 < 1.32.5 1.32.5 dotnet add package Microsoft.OpenApi.Kiota --version 1.32.5
NuGet Microsoft.OpenApi.Kiota < 1.29.1 1.29.1 dotnet add package Microsoft.OpenApi.Kiota --version 1.29.1
NuGet Microsoft.OpenApi.Kiota.Builder ≥ 1.30.0 < 1.32.5 1.32.5 dotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.32.5
NuGet Microsoft.OpenApi.Kiota.Builder < 1.29.1 1.29.1 dotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.29.1

Per OSV / GitHub Advisories (GHSA-4vv7-jj25-4gh6). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.