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-59861 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.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.

Metrics

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.0 (semver)

CPE

  • No CPEs found in CPE dictionary for this product.

Remediation

  • Upgrade: 1.32.0moderate effort
  • Workaround:low effort

    Audit and sanitize OpenAPI specifications: Review all OpenAPI specification files for any 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 Ruby files before merging into any branch. Look for double-quoted strings containing #{, #$ 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 Ruby 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 string literals (replace # with \# in double-quoted strings).

Change History

5 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-59861
NVD Published Date:
Jul 16, 2026
NVD Last Modified:
Aug 17, 2026
Source:
[email protected]
CVE-2026-59861 Details - Not Deferred