CVE-2026-59866CWE-22CWE-94path-traversalcode-injection

CVE-2026-59866

published July 16, 2026

CVSS
9.3
EPSS
1%
Percentile
72.5
In the wild
Unconfirmed
What it is

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.

The record
Technical detail
CVSS
9.3 · NONE
CVSS v4.0
Not supplied
EPSS
0.01413 · 72.5th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-07-16T20:19Z
References (4)
EPSS history
Timeline
  • 16 JUL 14:46Z
    Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName
    cvelistv5