CVE-2026-59861
Kiota is an OpenAPI based HTTP Client code generator. Prior to …
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.0, Kiota's Ruby generator embedded OpenAPI default fields, property names, and other schema-derived strings through CodeMethodWriter.cs and SanitizeForQuotedLiteral() in Writers/StringExtensions.cs into Ruby double-quoted literals without escaping #, allowing attacker-controlled #{expr}, #$var, or #@var interpolation markers to inject arbitrary Ruby code into generated model classes. This issue is fixed in version 1.32.0.
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/fee1b648bb4394ba7ba72de9c0ce4f2a0bad0cb6
- github.com/microsoft/kiota/pull/7746
- github.com/microsoft/kiota/releases/tag/v1.32.0
- github.com/microsoft/kiota/security/advisories/GHSA-xg2h-5xr2-29jw
- nvd.nist.gov/vuln/detail/CVE-2026-59861
- github.com/advisories/GHSA-xg2h-5xr2-29jw
- nvd.nist.gov/vuln/detail/CVE-2026-59861
- cve.org/CVERecord?id=CVE-2026-59861
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.