CVE-2026-59861

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.
Configurations

No configuration.

History

24 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Kiota es un generador de código de cliente HTTP basado en OpenAPI. Antes de la versión 1.32.0, el generador Ruby de Kiota incrustaba campos predeterminados de OpenAPI, nombres de propiedades y otras cadenas derivadas del esquema a través de CodeMethodWriter.cs y SanitizeForQuotedLiteral() en Writers/StringExtensions.cs en literales de Ruby entre comillas dobles sin escapar #, permitiendo que los marcadores de interpolación #{expr}, #$var o #@var controlados por el atacante inyectaran código Ruby arbitrario en las clases de modelo generadas. Este problema se corrigió en la versión 1.32.0.

17 Aug 2026, 15:16

Type Values Removed Values Added
Summary (en) Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.0. (en) 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.

16 Jul 2026, 15:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-16 15:16

Updated : 2026-10-24 21:10


NVD link : CVE-2026-59861

Mitre link : CVE-2026-59861

CVE.ORG link : CVE-2026-59861


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')