Live threats

All CVEs / microsoft

CVE-2026-59862microsoft kiota

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jul 16, 2026
Updated
Oct 24, 2026
Category
Application · Windows
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.0, Kiota's Python generator let attacker-controlled enum value descriptions from x-ms-enum.values[].description flow through KiotaBuilder.SetEnumOptions into Documentation.DescriptionTemplate and PythonConventionService.RemoveInvalidDescriptionCharacters without newline sanitization, allowing generated inline comments to split and execute attacker-controlled Python code at module scope when generated modules were imported. This issue is fixed in version 1.29.1 and 1.32.0.

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.0 1.32.0 dotnet add package Microsoft.OpenAPI.Kiota --version 1.32.0
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.0 1.32.0 dotnet add package Microsoft.OpenAPI.Kiota.Builder --version 1.32.0
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-7f3j-j7jj-r3vr). 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.