Skip to main content
VulnerabilityPublished Updated

CVE-2026-59859: microsoft kiota · Code Injection

Affects microsoft kiotaSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 1.31.1 or 1.29.1 soon.

Data as of 28 Nov 2026, 18:37 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.3% chance of exploitation in 30 days – higher than 72% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.31.1, 1.29.1, 1.32.4
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade kiota to 1.31.1 or 1.29.1; Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder to 1.32.4; Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder to 1.29.1.

Affected software

ProductAffectedFixed in
microsoftkiotaAffected
  • >=1.30.0 <1.31.1
Fixed in
  • 1.31.1
microsoftkiotaAffected
  • <1.29.1
Fixed in
  • 1.29.1
NuGetMicrosoft.OpenApi.Kiotapkg:nuget/Microsoft.OpenApi.KiotaOther threatsAffected
  • 1.30.0 – 1.32.3
  • >=1.30.0 <1.32.4
7 affected builds
Fixed in
  • 1.32.4
NuGetMicrosoft.OpenApi.Kiotapkg:nuget/Microsoft.OpenApi.KiotaOther threatsAffected
  • <1.29.1
Fixed in
  • 1.29.1
NuGetMicrosoft.OpenApi.Kiota.Builderpkg:nuget/Microsoft.OpenApi.Kiota.BuilderOther threatsAffected
  • >=1.30.0 <1.32.4
Fixed in
  • 1.32.4
NuGetMicrosoft.OpenApi.Kiota.Builderpkg:nuget/Microsoft.OpenApi.Kiota.BuilderOther threatsAffected
  • <1.29.1
Fixed in
  • 1.29.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Microsoft Kiota to version 1.29.1, 1.32.4, or later to obtain the official fix. Regenerate all existing PHP clients to replace vulnerable generated code with patched output. If immediate upgrade is not possible, audit and sanitize OpenAPI specifications to remove or replace '$' characters in strings, conduct mandatory code reviews of generated PHP files to detect interpolation patterns, restrict OpenAPI specs to trusted sources, avoid deploying generated code to production without verification, and manually escape '$' characters in generated files as a temporary measure.

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.

References

Community reviews

Loading reviews…