{"id":"CVE-2026-59861","revision":"594168663bb642898a2b9fac59e81b9e","records":[{"revision":"594168663bb642898a2b9fac59e81b9e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-59861","aliases":[],"title":"Kiota: Code Generation Literal Injection in Kiota Ruby Generator","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.","state":0,"publishedAt":"2026-07-16T14:36:32.01+00:00","modifiedAt":"2026-08-17T15:02:02.208+00:00","affected":[{"ecosystem":"Vendor product","name":"kiota","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"microsoft\",\n                    \"product\": \"kiota\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.30.0, < 1.31.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 1.29.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw","https://github.com/microsoft/kiota/pull/7746","https://github.com/microsoft/kiota/commit/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6","https://github.com/microsoft/kiota/releases/tag/v1.32.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-59861","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-59861","identifiers":["CVE-2026-59861"]},"retained":false,"historicalAffected":[]}],"coverage":[]}