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.4%top 30%

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

0
High
Published: 07/16/2026 (07/16/2026, 14:42:02 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 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:L/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:48 UTC

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.

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

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 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