CVE Catalog

CVE-2026-59859

HighCVSS 8.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.02%

60th percentile - higher than 60% of all known CVEs

Summary

Kiota, an OpenAPI based HTTP client code generator, prior to versions 1.29.1 and 1.32.4 contains a PHP code injection vulnerability. The PHP generator fails to escape the $ character in double-quoted strings, allowing attacker-controlled interpolation constructs to inject arbitrary PHP code into generated model and request-builder classes.

Risk Assessment

An attacker can inject malicious PHP code into generated code, potentially leading to remote code execution in environments where the generated code is used.

Recommendation

Upgrade Kiota to version 1.29.1 or 1.32.4 (or later) and regenerate clients to replace vulnerable code.

Other vulnerabilities in Kiota

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS