CVE-2026-59859

HIGH

Kiota: Code Generation Literal Injection in the PHP Generator

Title source: cna
STIX 2.1

Description

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.

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