CVE-2026-59864: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota
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.
AI Analysis
Technical Summary
Microsoft Kiota, an OpenAPI-based HTTP client code generator, had a path traversal vulnerability (CWE-22) in versions before 1.32.5. Specifically, the commands `kiota plugin add` and `kiota plugin generate` (with the APIPlugin target) emitted static_template.file values derived from attacker-controlled fields (x-ai-adaptive-card and x-ai-capabilities) into Microsoft 365 Copilot and Teams plugin manifests without validating the file paths. This lack of validation allowed maliciously crafted paths including directory traversal sequences and absolute or UNC paths to be injected, leading to potential path traversal or inclusion of files outside the intended package scope when the plugin was deployed. The vulnerability has a CVSS 4.0 score of 9.3 (critical) and is fixed in version 1.32.5. The product is a cloud service, so remediation is managed by the vendor.
Potential Impact
Exploitation of this vulnerability could allow an attacker to cause path traversal or include files outside the intended package boundaries in generated Microsoft 365 Copilot and Teams plugins. This can lead to unauthorized file access or manipulation when the plugin is deployed, potentially compromising system integrity or confidentiality. The CVSS score of 9.3 indicates a critical impact with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in Microsoft Kiota version 1.32.5. Since Kiota is a cloud service, Microsoft manages remediation for this service. Users should ensure they are using version 1.32.5 or later. Check the official Microsoft advisory for confirmation and further guidance. No additional mitigation steps are indicated by the vendor advisory.
CVE-2026-59864: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota
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.
CVSS v4.0
Score 9.3critical
Affected software
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
Technical Analysis
Microsoft Kiota, an OpenAPI-based HTTP client code generator, had a path traversal vulnerability (CWE-22) in versions before 1.32.5. Specifically, the commands `kiota plugin add` and `kiota plugin generate` (with the APIPlugin target) emitted static_template.file values derived from attacker-controlled fields (x-ai-adaptive-card and x-ai-capabilities) into Microsoft 365 Copilot and Teams plugin manifests without validating the file paths. This lack of validation allowed maliciously crafted paths including directory traversal sequences and absolute or UNC paths to be injected, leading to potential path traversal or inclusion of files outside the intended package scope when the plugin was deployed. The vulnerability has a CVSS 4.0 score of 9.3 (critical) and is fixed in version 1.32.5. The product is a cloud service, so remediation is managed by the vendor.
Potential Impact
Exploitation of this vulnerability could allow an attacker to cause path traversal or include files outside the intended package boundaries in generated Microsoft 365 Copilot and Teams plugins. This can lead to unauthorized file access or manipulation when the plugin is deployed, potentially compromising system integrity or confidentiality. The CVSS score of 9.3 indicates a critical impact with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in Microsoft Kiota version 1.32.5. Since Kiota is a cloud service, Microsoft manages remediation for this service. Users should ensure they are using version 1.32.5 or later. Check the official Microsoft advisory for confirmation and further guidance. No additional mitigation steps are indicated by the vendor advisory.
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: 07/16/2026, 15:48:01 UTC
Last updated: 07/17/2026, 01:05:24 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.