CVE Explorer
CVE-2026-59861
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota's Ruby generator embedded OpenAPI default fields, property names, and other schema-derived strings through CodeMethodWriter.cs and SanitizeForQuotedLiteral() in Writers/StringExtensions.cs into Ruby double-quoted literals without escaping #, allowing attacker-controlled #{expr}, #$var, or #@var interpolation markers to inject arbitrary Ruby code into generated model classes. This issue is fixed in version 1.32.0.
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.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/metrics/0/cvssV3_1
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:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/references/2
{"name":"https://github.com/microsoft/kiota/pull/7746","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/pull/7746"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/references/1
{"name":"https://github.com/microsoft/kiota/releases/tag/v1.32.0","tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/kiota/releases/tag/v1.32.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /containers/cna/references/3
{"name":"https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw","tags":["x_refsource_CONFIRM"],"url":"https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6ee3492348fb8247c6529c6bd1843d53fb8ea3959d590779a0a71b466e1148f9 · sha256:d58f19c4eb0e7932… · /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.