Vulnerabilities / CVE-2026-59864

critical

CVE-2026-59864

Microsoft Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions

Published Modified CWE 22, 829
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by GHSA.

Description

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 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.29.1 and 1.32.5.

Affected packages and fixed versions

SourcePackageFixed in
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota, Microsoft.OpenApi.Kiota.Builder, microsoft.openapi.kiota and 1 more1.32.5, 1.29.1
Show all 4 entries from 1 source
SourcePackageFixed in
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota.Builder1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetmicrosoft.openapi.kiota1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetmicrosoft.openapi.kiota.builder1.32.5, 1.29.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.