Security mailing lists by PureSourceCode

CVE-2026-59859

HIGH 8.7CVSS 4.0

Microsoft Kiota: Code Generation Literal Injection in Kiota PHP Generator

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.

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-jqwh-526h-c92j
Sources
NVDJSONOSV GHSA-jqwh-526h-c92jJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.7 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV NuGet Microsoft.OpenApi.Kiota >= 1.30.0, < 1.32.4 1.32.4
OSV NuGet Microsoft.OpenApi.Kiota.Builder >= 1.30.0, < 1.32.4 1.32.4
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.