CVE-2026-59861
Published:July 16, 2026
Updated:August 04, 2026
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.
Affected Packages
Microsoft.OpenApi.Kiota (DOT_NET):
Affected version(s) >=0.1.0.0 <1.32.0Fix Suggestion:
Update to version 1.32.0Microsoft.OpenApi.Kiota.Builder (DOT_NET):
Affected version(s) >=0.2.0.0 <1.32.0Fix Suggestion:
Update to version 1.32.0microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.0Fix Suggestion:
Update to version 1.32.0microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.0Fix Suggestion:
Update to version 1.32.0microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.0Fix Suggestion:
Update to version 1.32.0microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.0Fix Suggestion:
Update to version 1.32.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
1.47