CVE-2026-59866
Kiota is an OpenAPI based HTTP Client code generator. Prior to …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/microsoft/kiota/commit/dc812dbbf88ef7edf53a890d36b2f9d1460e947d
- github.com/microsoft/kiota/pull/7884
- github.com/microsoft/kiota/releases/tag/v1.32.5
- github.com/microsoft/kiota/security/advisories/GHSA-4vv7-jj25-4gh6
- nvd.nist.gov/vuln/detail/CVE-2026-59866
- github.com/advisories/GHSA-4vv7-jj25-4gh6
- nvd.nist.gov/vuln/detail/CVE-2026-59866
- cve.org/CVERecord?id=CVE-2026-59866
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.