High severityNVD Advisory· Published Jul 16, 2026· Updated Jul 29, 2026
Kiota: Code Generation Literal Injection in the PHP Generator
CVE-2026-59859
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
Microsoft.OpenApi.KiotaNuGet | < 1.32.4 | 1.32.4 |
Microsoft.OpenApi.Kiota.BuilderNuGet | < 1.32.4 | 1.32.4 |
Affected products
1- Range: <1.32.4
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-jqwh-526h-c92jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-59859ghsaADVISORY
- github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87ghsax_refsource_MISCWEB
- github.com/microsoft/kiota/pull/7863ghsax_refsource_MISCWEB
- github.com/microsoft/kiota/releases/tag/v1.32.4ghsax_refsource_MISCWEB
- github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92jghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.