CVE-2026-59859
HIGHKiota: Code Generation Literal Injection in the PHP Generator
Title source: cnaDescription
Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.4.
References (4)
Core 4
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j
X_Refsource_Misc x_refsource_misc
https://github.com/microsoft/kiota/pull/7863
X_Refsource_Misc x_refsource_misc
https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87
X_Refsource_Misc x_refsource_misc
https://github.com/microsoft/kiota/releases/tag/v1.32.4
Scores
CVSS v4
8.7
EPSS
0.0102
EPSS Percentile
59.9%
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
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-94
Status
published
Products (3)
microsoft/kiota
< 1.32.4
nuget/Microsoft.OpenApi.Kiota
0 - 1.32.4NuGet
nuget/Microsoft.OpenApi.Kiota.Builder
0 - 1.32.4NuGet
Published
Jul 16, 2026
Tracked Since
Jul 16, 2026