CVE-2026-59861Kiota: Code Generation Literal Injection in Kiota Ruby Generator
- 7.5HighCVSS base score
- 2.0%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 9 days later
· 9 days later
Published
- 32 days later
· 32 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 2.0% · top 18% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Affected packages
Affected packages4
From reviewed advisories of the GitHub Advisory Database.
- NuGetMicrosoft.OpenAPI.KiotaGHSA-xg2h-5xr2-29jw (opens in a new tab)
- NuGetMicrosoft.OpenAPI.Kiota.BuilderGHSA-xg2h-5xr2-29jw (opens in a new tab)
- NuGetMicrosoft.OpenApi.KiotaGHSA-xg2h-5xr2-29jw (opens in a new tab)
- NuGetMicrosoft.OpenApi.Kiota.BuilderGHSA-xg2h-5xr2-29jw (opens in a new tab)
References
References4
- https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw (opens in a new tab)x_refsource_CONFIRM
- https://github.com/microsoft/kiota/pull/7746 (opens in a new tab)x_refsource_MISC
- https://github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6 (opens in a new tab)x_refsource_MISC
- https://github.com/microsoft/kiota/releases/tag/v1.32.0 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-44926 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xg2h-5xr2-29jw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-59861)Record last updated .