CVE-2026-59866
Last modified
CVE-2026-59866 is a critical-severity vulnerability rated 9.3/10 on the CVSS scale. 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. EPSS estimates a 1.35% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| microsoft | kiota | < 1.32.5 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-59866?
How severe is CVE-2026-59866?
How do I fix CVE-2026-59866?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59860Kiota is an OpenAPI based HTTP Client code generator. Prior …8.7
- CVE-2026-59861Kiota is an OpenAPI based HTTP Client code generator. Prior …7.5
- CVE-2026-59862Kiota is an OpenAPI based HTTP Client code generator. Prior …7.5
- CVE-2026-59863Kiota is an OpenAPI based HTTP Client code generator. Prior …7
- CVE-2026-59864Kiota is an OpenAPI based HTTP Client code generator. Prior …9.3
- CVE-2026-59865Kiota is an OpenAPI based HTTP Client code generator. Prior …9.3
- CVE-2026-59867Kiota is an OpenAPI based HTTP Client code generator. Prior …7.1
- CVE-2026-59868js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 b…7.5
- CVE-2026-59869js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 b…7.5
- CVE-2026-5987A security vulnerability has been detected in Sanluan Public…4.7
- CVE-2026-59870js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 b…7.5
- CVE-2026-59871node-tar is a tar archive manipulation library for Node.js. …7.5
Are you affected by CVE-2026-59866?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
