VYPR
High severityNVD Advisory· Published Jul 16, 2026· Updated Jul 29, 2026

Kiota: Code Generation Literal Injection in the PHP Generator

CVE-2026-59859

Description

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

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
Microsoft.OpenApi.KiotaNuGet
< 1.32.41.32.4
Microsoft.OpenApi.Kiota.BuilderNuGet
< 1.32.41.32.4

Affected products

1

Patches

Vulnerability mechanics

References

6

News mentions

0

No linked articles in our index yet.