Code Injection Vulnerability in Kiota Ruby Generator by Microsoft
CVE-2026-59861

7.5HIGH

Key Information:

Vendor

Microsoft

Status
Vendor
CVE Published:
16 July 2026

What is CVE-2026-59861?

Kiota, an OpenAPI based HTTP Client code generator, had a significant vulnerability prior to version 1.32.0 in its Ruby generator. The issue stemmed from the improper handling of embedded OpenAPI default fields and other schema-derived strings. Specifically, interpolation markers like #{expr}, #$var, and #@var were incorporated into Ruby double-quoted literals without adequate escaping. This flaw permitted attackers to inject arbitrary Ruby code into the generated model classes, potentially leading to severe security risks. The vulnerability was addressed and patched in version 1.32.0.

Affected Version(s)

kiota < 1.32.0

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.