Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 1.3%top 31%

CVE-2026-59864: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota

0
Critical
Published: 07/16/2026 (07/16/2026, 14:45:36 UTC)
Source: CVE Database V5
Vendor/Project: microsoft
Product: kiota

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.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
microsoft/kiota
pkg:github/microsoft/kiota
Affected versions
<1.32.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 16:24:24 UTC

Technical Analysis

The vulnerability in Microsoft Kiota (CVE-2026-59864) involves improper limitation of a pathname to a restricted directory (CWE-22) combined with out-of-package file inclusion (CWE-829). The kiota plugin commands 'kiota plugin add' and 'kiota plugin generate' with '-t APIPlugin' emit the 'static_template.file' path from AI-plugin extensions verbatim into the plugin manifest without sanitization. An attacker-controlled OpenAPI description can embed path traversal sequences or absolute paths into the manifest's 'response_semantics.static_template.file' field. This path is later resolved by the AI host (Microsoft 365 Copilot / Teams) when the plugin is deployed, potentially allowing access to files outside the plugin package. The vulnerability was confirmed in Kiota version 1.32.4 with the self-contained linux-x64 binary. The issue is not local code execution on the build host but occurs downstream during plugin deployment. The fix, introduced in versions 1.29.1 and 1.32.5, validates and restricts 'static_template.file' to relative paths confined to the plugin package, rejecting absolute paths, UNC paths, Windows drive paths, and traversal segments.

Potential Impact

The vulnerability allows an attacker to cause the AI host environment (Microsoft 365 Copilot / Teams) to resolve and include files outside the intended plugin package via crafted path traversal or absolute paths in the plugin manifest. This can lead to unauthorized file access or disclosure when the plugin is deployed and executed by the AI host. There is no direct local code execution on the build host; the impact manifests downstream in the AI host environment. The CVSS 4.0 score is 9.3 (critical), reflecting high impact with network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Upgrade Microsoft Kiota to version 1.29.1, 1.32.5, or later. These versions include validation that restricts 'static_template.file' paths to relative paths within the plugin package and reject unsafe paths such as absolute paths and traversal segments. Regenerate any affected plugins after upgrading. No additional mitigation is required as the fix addresses the root cause by sanitizing the path input before manifest generation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T15:41:53.607Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null
Is Cloud Service
true

Threat ID: 6a58f9c068715ace434105e8

Added to database: 07/16/2026, 15:33:20 UTC

Last enriched: 08/17/2026, 16:24:24 UTC

Last updated: 08/29/2026, 22:52:12 UTC

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses