CVE Explorer
CVE-2026-59859
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"kiota","vendor":"microsoft","versions":[{"status":"affected","version":"< 1.32.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.7,"baseSeverity":"HIGH","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/references/2
{"name":"https://github.com/microsoft/kiota/pull/7863","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/pull/7863"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/references/1
{"name":"https://github.com/microsoft/kiota/releases/tag/v1.32.4","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/releases/tag/v1.32.4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/references/3
{"name":"https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j","tags":["x_refsource_CONFIRM"],"url":"https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ee2345ee887b664e9aa3bcbaac80e2caf615b820914ba8a3797df306c4ebdeb9 · sha256:656944aaeabec30b… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.