Skip to content
Heist/ feed
High

Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators

Type: advisorySource: Official CVE List1 source record

Kiota is an OpenAPI based HTTP Client code generator. From 0.5.0 until 1.35.0, Kiota's Java and PHP documentation-comment sanitizers delete block-comment terminators rather than neutralizing them, allowing overlapping characters to reform a terminator and place attacker-controlled OpenAPI text outside a generated documentation comment. The Java sanitizer also removes non-ASCII characters after deleting terminators, which can create a new terminator during normalization. Exploitation requires a developer or build pipeline to generate source from the malicious description and then compile and load the Java output or load the PHP output, after which injected code executes in the consuming application or build environment context. The version range is based on the Java defect and does not assert that PHP generation existed in every affected release. This issue is fixed in version 1.35.0.

Announced Source revision 1
Original source ↗

CVE-2026-105796

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-105796

kiota

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Microsoft.OpenApi.Kiota

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Microsoft.OpenApi.Kiota.Builder

Source reference: /containers/cna/affected/2/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "microsoft",
    "product": "kiota",
    "versions": [
      {
        "status": "affected",
        "version": ">= 0.5.0, < 1.35.0"
      }
    ]
  },
  {
    "vendor": "microsoft",
    "product": "Microsoft.OpenApi.Kiota",
    "versions": [
      {
        "status": "affected",
        "version": ">= 0.5.0, < 1.35.0"
      }
    ]
  },
  {
    "vendor": "microsoft",
    "product": "Microsoft.OpenApi.Kiota.Builder",
    "versions": [
      {
        "status": "affected",
        "version": ">= 0.5.0, < 1.35.0"
      }
    ]
  }
]
Related CVEs
CVE-2026-105796

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#16112 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement