{"id":"CVE-2026-59859","revision":"1ece5b94b6a340afb80a5fb66fdbc76c","records":[{"revision":"1ece5b94b6a340afb80a5fb66fdbc76c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-59859","aliases":[],"title":"Kiota: Code Generation Literal Injection in the PHP Generator","description":"Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.4, Kiota's PHP generator embedded OpenAPI description, default fields, property names, and other schema-derived strings into PHP double-quoted literals through SanitizeDoubleQuote() in Writers/StringExtensions.cs without escaping $, allowing attacker-controlled ${...}, $var, or {$obj->prop} interpolation constructs to inject arbitrary PHP code into generated model and request-builder classes. This issue is fixed in version 1.29.1 and 1.32.4.","state":0,"publishedAt":"2026-07-16T14:40:27.319+00:00","modifiedAt":"2026-08-17T15:02:29.204+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:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"severity":"HIGH"}],"references":["https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j","https://github.com/microsoft/kiota/pull/7863","https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87","https://github.com/microsoft/kiota/releases/tag/v1.32.4"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-59859","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-59859","identifiers":["CVE-2026-59859"]},"retained":false,"historicalAffected":[]}],"coverage":[]}