High severityNVD Advisory· Published Jul 16, 2026· Updated Aug 17, 2026
CVE-2026-59859
CVE-2026-59859
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
Microsoft.OpenApi.KiotaNuGet | >= 1.30.0, < 1.32.4 | 1.32.4 |
Microsoft.OpenApi.Kiota.BuilderNuGet | >= 1.30.0, < 1.32.4 | 1.32.4 |
Microsoft.OpenApi.KiotaNuGet | < 1.29.1 | 1.29.1 |
Microsoft.OpenApi.Kiota.BuilderNuGet | < 1.29.1 | 1.29.1 |
Affected products
1- Range: <1.29.1, <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/5e2a211ac4261988fbdc72c3b268596ea8837b87nvdWEB
- github.com/microsoft/kiota/pull/7863nvdWEB
- github.com/microsoft/kiota/releases/tag/v1.32.4nvdWEB
- github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92jnvdWEB
News mentions
0No linked articles in our index yet.