Vulnerability details
CVE-2026-59861
Microsoft kiota
Kiota: Code Generation Literal Injection in Kiota Ruby Generator
CVSS 3.1
7.5High
Official 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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.5High | 3.1 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| Microsoft | kiota | < 1.29.1 | CVEProject cvelistV5 (CNA) |
| Microsoft | kiota | >= 1.30.0, < 1.31.1 | CVEProject cvelistV5 (CNA) |
References and advisories
4- https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw x_refsource_CONFIRM
- https://github.com/microsoft/kiota/pull/7746 x_refsource_MISC
- https://github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6 x_refsource_MISC
- https://github.com/microsoft/kiota/releases/tag/v1.32.0 x_refsource_MISC
Kolun on Telegram @kolunsec
Exploited CVEs, key news and a daily digest
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2026-07-16
- Last updated
- 2026-08-17
- State
- Published
- Assigner (CNA)
- GitHub_M
Exploit prediction (EPSS)
2.04%
Probability of exploitation in 30 days
81.3%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- Yes
- Exploitation
- None
- Technical impact
- Total
Weaknesses (CWE)
- CWE-94Improper Control of Generation of Code ('Code Injection')