CVE-2026-105796

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

  • High 8.8

Description

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.

Key facts

Published
6 Oct 2026
Last changed
9 Oct 2026
Assigned by
GitHub_M
EPSS
0.896% likely to be exploited in the next 30 days, higher than 60.14% of CVEs (scores for 17 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 8.8CVSS 3.1, Highfrom the CNA (GitHub_M)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
microsoftkiota
  • >= 0.5.0, < 1.35.0 (affected)
microsoftMicrosoft.OpenApi.Kiota
  • >= 0.5.0, < 1.35.0 (affected)
microsoftMicrosoft.OpenApi.Kiota.Builder
  • >= 0.5.0, < 1.35.0 (affected)

Timeline

  1. 6 Oct 2026 Published

Weakness

References