CVE-2026-59861: Kiota: Code Generation Literal Injection in Kiota Ruby Generator
microsoft · kiota
Affected: microsoft kiota · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 81% of scored CVEs
DescriptionCVE.org
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.0.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- microsoft · kiota>= 1.30.0, < 1.31.1; < 1.29.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
CoverageNo articles yet
No CyberSIXT article names CVE-2026-59861 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-94cwe.mitre.org
- github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29github.com
- github.com/microsoft/kiota/pull/7746github.com
- github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4fgithub.com
- github.com/microsoft/kiota/releases/tag/v1.32.0github.com