CVE-2026-59859 json
Kiota: Code Generation Literal Injection in the PHP Generator
published 4mo ago modified 18d ago also EUVD-2026-44928 , GHSA-jqwh-526h-c92j
- cvss
- 8.7
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Microsoft.OpenApi.Kiota 1.29.1, 1.32.4
- nuget Microsoft.OpenApi.Kiota.Builder 1.29.1, 1.32.4
- microsoft kiota 1.29.1, 1.32.4
- microsoft microsoft.openapi.kiota 1.29.1, 1.32.4
- microsoft microsoft.openapi.kiota.builder 1.29.1, 1.32.4
- github.com/microsoft/kiota@5e2a211 commit
- github.com/microsoft/kiota#7863 pull request
- github.com/microsoft/kiota/releases/tag/v1.32.4 release
Is CVE-2026-59859 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3mo ago
Exploit prediction
1.38% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 4.0 | 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Microsoft.OpenApi.Kiota | >=1.30.0, <1.32.4 <1.29.1 |
1.32.4 1.29.1 |
| nuget | Microsoft.OpenApi.Kiota.Builder | >=1.30.0, <1.32.4 <1.29.1 |
1.32.4 1.29.1 |
Affected products
- microsoft kiota
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/microsoft/kiota/pull/7863
web
-
github.com
/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87
web
-
github.com
/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j
web, advisory
-
github.com
/microsoft/kiota/releases/tag/v1.32.4
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-59859
advisory
-
github.com
/microsoft/kiota
package
Sources
- CVE List CVE-2026-59859
- GitHub Advisory GHSA-jqwh-526h-c92j
- NVD CVE-2026-59859
- Maintainer advisory GHSA-jqwh-526h-c92j
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of microsoft/kiota published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.