Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-59859 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]

Affected Products

ProductVersions
Microsoft Kiota
< 1.32.4 (semver)

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • Upgrade: 1.32.4moderate effort
  • Workaround:low effort

    Audit and sanitize OpenAPI specifications: Review all OpenAPI specification files for any descriptions, default values, or property names containing the '$' character. Remove or replace any suspicious strings before code generation.

  • Workaround:low effort

    Implement mandatory code review of all generated PHP files before merging into any branch. Look for double-quoted strings containing '${', '$var', or '{$' patterns.

  • Workaround:low effort

    Only consume OpenAPI specifications from trusted internal sources. Avoid automatic code generation from external or third-party APIs until this patch is applied.

  • Workaround:low effort

    Do not deploy generated PHP models to production environments unless the specification source has been verified and reviewed.

  • Workaround:low effort

    If regeneration is not possible, manually inspect and edit generated files to escape any '$' characters in double-quoted string literals (replace '$' with '\$').

Change History

5 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-59859
NVD Published Date:
Jul 16, 2026
NVD Last Modified:
Oct 24, 2026
Source:
[email protected]
CVE-2026-59859 Details - Not Deferred