1. Home
  2. Vulnerabilities
  3. CVE-2026-105796

CVE-2026-105796

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

Published 6 Oct 2026 · modified 9 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 53/100

Summary

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.

Affected products and versions

Microsoft (3 line(s))
Microsoft
ProductVersionsFixed inSource
Kiota Versions not specified — CNA (vendor or assigner)
Microsoft.OpenApi.Kiota Versions not specified — CNA (vendor or assigner)
Microsoft.OpenApi.Kiota.Builder Versions not specified — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-94 · Injection de commandes / code

How this data is obtained and calculated