CVE-2026-59866

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

No CVSS.

Configurations

No configuration.

History

16 Jul 2026, 16:19

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-16 16:19

Updated : 2026-07-29 19:16


NVD link : CVE-2026-59866

Mitre link : CVE-2026-59866

CVE.ORG link : CVE-2026-59866


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-94

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