Live threats

All CVEs / microsoft

CVE-2026-59859microsoft kiota

High 8.7 No auth needed

Priority
67
CVSS 4.0
8.7
EPSS
—
Auth required
No
Published
Jul 16, 2026
Updated
Oct 24, 2026
Category
Application · Windows
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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.4, Kiota's PHP generator embedded OpenAPI description, default fields, property names, and other schema-derived strings into PHP double-quoted literals through SanitizeDoubleQuote() in Writers/StringExtensions.cs without escaping $, allowing attacker-controlled ${...}, $var, or {$obj->prop} interpolation constructs to inject arbitrary PHP code into generated model and request-builder classes. This issue is fixed in version 1.29.1 and 1.32.4.

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.4 1.32.4 dotnet add package Microsoft.OpenApi.Kiota --version 1.32.4
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.4 1.32.4 dotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.32.4
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-jqwh-526h-c92j). 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.