Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-59859
Published:July 16, 2026
Updated:August 04, 2026
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.
Affected Packages
Microsoft.OpenApi.Kiota (DOT_NET):
Affected version(s) >=0.1.0.0 <1.32.3
Fix Suggestion:
Update to version 1.32.3
Microsoft.OpenApi.Kiota.Builder (DOT_NET):
Affected version(s) >=0.2.0.0 <1.32.3
Fix Suggestion:
Update to version 1.32.3
microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.3
Fix Suggestion:
Update to version 1.32.3
microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.4
Fix Suggestion:
Update to version 1.32.4
microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.4
Fix Suggestion:
Update to version 1.32.4
microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.3
Fix Suggestion:
Update to version 1.32.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
1.02