CVE-2026-59859CWE-94code-injection

CVE-2026-59859

published July 16, 2026

CVSS
8.7
EPSS
1%
Percentile
71.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
8.7 · NONE
CVSS v4.0
Not supplied
EPSS
0.01381 · 71.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-07-16T19:16Z
References (4)
EPSS history
Timeline
  • 16 JUL 14:40Z
    Kiota: Code Generation Literal Injection in the PHP Generator
    cvelistv5