CVE-2026-59863: 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.29.1 and 1.32.5, Kiota honored a poisoned .kiota/workspace.json workspace configuration without validating per-client or per-plugin outputPath values during kiota client generate and kiota plugin generate, allowing a malicious repository or pull request to use absolute paths, rooted POSIX / paths, UNC \\ or // paths, Windows drive X:\ paths, or .. traversal segments to write generated client files outside the workspace root on a developer or CI host. This issue is fixed in version 1.29.1 and 1.32.5.
AI Analysis
Technical Summary
Microsoft Kiota honors a poisoned .kiota/workspace.json configuration file without validating the 'outputPath' parameter during 'kiota client generate' or 'kiota plugin generate' commands. A malicious repository or pull request can specify an absolute or path-traversing 'outputPath' that causes Kiota to write generated client files outside the intended workspace directory. This arbitrary file write vulnerability (CWE-22) affects Kiota version 1.32.4 (and earlier versions prior to 1.32.5). The issue was fixed in versions 1.29.1 and 1.32.5 by enforcing that 'outputPath' must be a relative subdirectory of the workspace root, rejecting absolute paths, UNC paths, and any '..' traversal segments. Generation aborts with an error if validation fails.
Potential Impact
An attacker who can commit or submit a pull request with a malicious .kiota/workspace.json file can cause arbitrary file writes on the filesystem of any developer or CI system that runs the documented Kiota client or plugin generation commands. This can overwrite critical source or build files or drop malicious files in auto-loaded locations, potentially leading to code execution or supply chain compromise. The vulnerability arises from trusting unvalidated configuration data in the repository, representing a significant risk in collaborative development environments.
Mitigation Recommendations
Upgrade to Microsoft Kiota version 1.29.1, 1.32.5, or later. These versions include validation that restricts the 'outputPath' configuration to relative paths within the workspace root, preventing path traversal. Additionally, review any committed .kiota/workspace.json files in your repositories to ensure 'outputPath' values do not point outside the workspace. If upgrading is not immediately possible, avoid running 'kiota client generate' or 'kiota plugin generate' commands on untrusted or unreviewed repositories or pull requests.
CVE-2026-59863: 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.29.1 and 1.32.5, Kiota honored a poisoned .kiota/workspace.json workspace configuration without validating per-client or per-plugin outputPath values during kiota client generate and kiota plugin generate, allowing a malicious repository or pull request to use absolute paths, rooted POSIX / paths, UNC \\ or // paths, Windows drive X:\ paths, or .. traversal segments to write generated client files outside the workspace root on a developer or CI host. This issue is fixed in version 1.29.1 and 1.32.5.
CVSS v4.0
Score 7.0high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Microsoft Kiota honors a poisoned .kiota/workspace.json configuration file without validating the 'outputPath' parameter during 'kiota client generate' or 'kiota plugin generate' commands. A malicious repository or pull request can specify an absolute or path-traversing 'outputPath' that causes Kiota to write generated client files outside the intended workspace directory. This arbitrary file write vulnerability (CWE-22) affects Kiota version 1.32.4 (and earlier versions prior to 1.32.5). The issue was fixed in versions 1.29.1 and 1.32.5 by enforcing that 'outputPath' must be a relative subdirectory of the workspace root, rejecting absolute paths, UNC paths, and any '..' traversal segments. Generation aborts with an error if validation fails.
Potential Impact
An attacker who can commit or submit a pull request with a malicious .kiota/workspace.json file can cause arbitrary file writes on the filesystem of any developer or CI system that runs the documented Kiota client or plugin generation commands. This can overwrite critical source or build files or drop malicious files in auto-loaded locations, potentially leading to code execution or supply chain compromise. The vulnerability arises from trusting unvalidated configuration data in the repository, representing a significant risk in collaborative development environments.
Mitigation Recommendations
Upgrade to Microsoft Kiota version 1.29.1, 1.32.5, or later. These versions include validation that restricts the 'outputPath' configuration to relative paths within the workspace root, preventing path traversal. Additionally, review any committed .kiota/workspace.json files in your repositories to ensure 'outputPath' values do not point outside the workspace. If upgrading is not immediately possible, avoid running 'kiota client generate' or 'kiota plugin generate' commands on untrusted or unreviewed repositories or pull requests.
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
Threat ID: 6a58ef3568715ace4330615b
Added to database: 07/16/2026, 14:48:21 UTC
Last enriched: 08/17/2026, 16:24:48 UTC
Last updated: 08/30/2026, 02:28:45 UTC
Views: 87
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.