{"id":82095,"date":"2026-07-16T18:46:35","date_gmt":"2026-07-16T15:16:35","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-59861-kiota-code-generation-literal-injection-in-kiota-ruby-generator\/"},"modified":"2026-07-16T18:46:35","modified_gmt":"2026-07-16T15:16:35","slug":"cve-2026-59861-kiota-code-generation-literal-injection-in-kiota-ruby-generator","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-59861-kiota-code-generation-literal-injection-in-kiota-ruby-generator\/","title":{"rendered":"CVE-2026-59861 &#8211; Kiota: Code Generation Literal Injection in Kiota Ruby Generator"},"content":{"rendered":"<p>CVE ID :CVE-2026-59861<\/p>\n<p>  Published : July 16, 2026, 3:16 p.m. | 18\u00a0minutes ago<\/p>\n<p>  Description :Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota&#8217;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.<\/p>\n<p>  Severity: 7.5 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-59861 Published : July 16, 2026, 3:16 p.m. | 18\u00a0minutes ago Description :Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota&#8217;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}, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82095","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82095"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82095\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}