CVE Catalog

CVE-2026-59861

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.47%

72th percentile - higher than 72% of all known CVEs

Summary

Kiota before versions 1.29.1 and 1.32.0 in the Ruby generator did not escape the # character in string literals, allowing arbitrary Ruby code injection into generated model classes.

Risk Assessment

A malicious OpenAPI description can lead to arbitrary Ruby code execution when generated modules are imported, potentially resulting in full system compromise.

Recommendation

Update Kiota to version 1.29.1 or 1.32.0 to get escaping fixes in the Ruby generator.

Other vulnerabilities in Kiota

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS