Security mailing lists by PureSourceCode

CVE-2026-59861

HIGH 7.5CVSS 3.1

Microsoft Kiota: Code Generation Literal Injection in Kiota Ruby Generator

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.0.

Published
16 Jul 2026
Last modified
24 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-94
Also known as
GHSA-xg2h-5xr2-29jw
Sources
NVDJSONOSV GHSA-xg2h-5xr2-29jwJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV NuGet Microsoft.OpenAPI.Kiota >= 1.30.0, < 1.32.0 1.32.0
OSV NuGet Microsoft.OpenAPI.Kiota.Builder >= 1.30.0, < 1.32.0 1.32.0
OSV NuGet Microsoft.OpenApi.Kiota < 1.29.1 1.29.1
OSV NuGet Microsoft.OpenApi.Kiota.Builder < 1.29.1 1.29.1

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 16 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.