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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-94 — CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| microsoft | kiota | < 1.32.4 |
References
- https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j (x_refsource_CONFIRM)
- https://github.com/microsoft/kiota/pull/7863 (x_refsource_MISC)
- https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87 (x_refsource_MISC)
- https://github.com/microsoft/kiota/releases/tag/v1.32.4 (x_refsource_MISC)
Generated from the official CVE List on 17 Jul 2026 07:01 UTC.