Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-59866
Published:July 16, 2026
Updated:August 04, 2026
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, Kiota emitted x-ms-kiota-info clientClassName and clientNamespaceName values without identifier or path sanitization as both generated client class or namespace names and generated output path components when "kiota generate" ran without -c/--class-name, allowing an attacker-controlled or compromised OpenAPI description to write generated source outside the -o output directory and inject arbitrary text into generated class or namespace declarations. This issue is fixed in version 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.
Affected Packages
Microsoft.OpenApi.Kiota.Builder (DOT_NET):
Affected version(s) >=0.2.0.0 <1.32.5
Fix Suggestion:
Update to version 1.32.5
Microsoft.OpenApi.Kiota (DOT_NET):
Affected version(s) >=0.1.0.0 <1.32.5
Fix Suggestion:
Update to version 1.32.5
microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.5
Fix Suggestion:
Update to version 1.32.5
microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.5
Fix Suggestion:
Update to version 1.32.5
microsoft.openapi.kiota.builder (NUGET):
Affected version(s) >=0.2.0-preview <1.32.5
Fix Suggestion:
Update to version 1.32.5
microsoft.openapi.kiota (NUGET):
Affected version(s) >=0.1.0-preview <1.32.5
Fix Suggestion:
Update to version 1.32.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
1.35