{"id":"CVE-2026-59866","revision":"6f4a319dbf264bdda704b8ce339ce126","records":[{"revision":"6f4a319dbf264bdda704b8ce339ce126","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-59866","aliases":[],"title":"Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName","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.","state":0,"publishedAt":"2026-07-16T14:46:50.738+00:00","modifiedAt":"2026-08-17T15:03:20.823+00:00","affected":[{"ecosystem":"Vendor product","name":"kiota","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"microsoft\",\n                    \"product\": \"kiota\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.30.0, < 1.31.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 1.29.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/microsoft/kiota/security/advisories/GHSA-4vv7-jj25-4gh6","https://github.com/microsoft/kiota/pull/7884","https://github.com/microsoft/kiota/commit/dc812dbbf88ef7edf53a890d36b2f9d1460e947d","https://github.com/microsoft/kiota/releases/tag/v1.32.5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-59866","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-59866","identifiers":["CVE-2026-59866"]},"retained":false,"historicalAffected":[]}],"coverage":[]}