Description
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, `kiota plugin add` and `kiota plugin generate` (with `-t APIPlugin`) emitted attacker-controlled static_template.file values from x-ai-adaptive-card and x-ai-capabilities into generated Microsoft 365 Copilot and Teams plugin manifests without path validation, allowing ../, absolute, rooted, UNC, Windows drive, or URI paths in response_semantics.static_template.file to cause path traversal or out-of-package file inclusion when the generated plugin was deployed. This issue is fixed in version 1.32.5.
Published: 2026-07-16
Score: 9.3 Critical
EPSS: 1.3% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Kiota, an OpenAPI‑based HTTP client code generator, can emit the static_template.file field of a Microsoft 365 Copilot or Teams plugin manifest from values supplied in x‑ai‑adaptive‑card and x‑ai‑capabilities extensions. Because the generator does not validate these paths, an attacker can supply an OpenAPI document that contains relative fragments such as "../", absolute file system paths, UNC shares, Windows drive letters, or URI schemes. When the plugin is generated, these values are written verbatim into response_semantics.static_template.file. The resulting manifest may reference files outside the intended package or point to arbitrary system files, potentially exposing sensitive data or, if the referenced file contains executable code, enabling code execution when the plugin is loaded by a user.

Affected Systems

The vulnerability affects Microsoft Kiota versions earlier than 1.32.5. The flaw is triggered when running the "kiota plugin add" or "kiota plugin generate" commands with the "-t APIPlugin" option to produce Copilot or Teams plugin manifests. The issue originates from the inclusion of x‑ai‑adaptive‑card and x‑ai‑capabilities extensions in the OpenAPI specification that are copied into the manifest without proper path validation.

Risk and Exploitability

With a CVSS score of 9.3 the flaw is considered high severity. The EPSS score of 1% indicates a very low but non‑zero likelihood of exploitation, and the flaw is not listed in the CISA KEV catalog. The attack vector is local; an adversary must supply a malicious OpenAPI document to the generation workflow. Once the plugin is deployed, an attacker can exploit path traversal or arbitrary file inclusion to read or execute code within the hosting environment.

Generated by OpenCVE AI on July 31, 2026 at 01:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Kiota to version 1.32.5 or later, which sanitises static_template.file paths before writing them into the plugin manifest.
  • If an upgrade cannot be applied immediately, refrain from using "kiota plugin add" or "kiota plugin generate" with the –t APIPlugin option until the issue is fixed.
  • Examine any existing plugin manifests that were created with earlier Kiota releases for suspicious static_template.file entries and either regenerate them with a patched Kiota instance or manually validate the paths before deployment.

Generated by OpenCVE AI on July 31, 2026 at 01:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-4jwf-m4wg-8p66 Microsoft Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions
History

Thu, 16 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft kiota
Vendors & Products Microsoft
Microsoft kiota

Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, `kiota plugin add` and `kiota plugin generate` (with `-t APIPlugin`) emitted attacker-controlled static_template.file values from x-ai-adaptive-card and x-ai-capabilities into generated Microsoft 365 Copilot and Teams plugin manifests without path validation, allowing ../, absolute, rooted, UNC, Windows drive, or URI paths in response_semantics.static_template.file to cause path traversal or out-of-package file inclusion when the generated plugin was deployed. This issue is fixed in version 1.32.5.
Title Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions
Weaknesses CWE-22
CWE-829
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T03:56:38.964Z

Reserved: 2026-07-07T15:41:53.607Z

Link: CVE-2026-59864

cve-icon Vulnrichment

Updated: 2026-07-16T15:42:32.880Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T02:00:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere