CVE-2026-59863

Kiota: Workspace-config poisoning: out-of-repo file write + generation-time SSRF

Published Jul 16, 2026 CVSS 4.0 · 7 High EPSS 1.4% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Kiota is an OpenAPI‑based HTTP client code generator. Before versions 1.29.1 and 1.32.5, the tool would honour a poisoned .kiota/workspace.json configuration file without checking the outputPath values supplied for either a client or a plugin during the kiota client generate or kiota plugin generate commands. The unchecked values could be absolute system paths, rooted POSIX paths, UNC paths, Windows drive letters, or include traversal segments, allowing a malicious repository or pull request to cause Kiota to write generated files anywhere outside the intended workspace on the developer or CI host. This flaw permits an attacker who can influence the workspace configuration to overwrite system files, inject malicious code, or create files that later execute, thereby creating a serious compromise vector.

Affected Systems

All installations of Microsoft Kiota using versions prior to 1.32.5 are affected. The flaw surfaces whenever the kiota client generate or kiota plugin generate commands are run against a workspace.json that is not properly sanitized, regardless of platform. Any environment that executes Kiota as part of a CI pipeline or local development workflow is therefore at risk.

Risk and Exploitability

The CVSS score of 7 indicates high severity. The EPSS score of 1% indicates a small but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is inferred to involve embedding a malicious workspace configuration in a repository or pull request so that when a developer or CI system runs Kiota, it writes files outside the intended directory; this could lead to privilege escalation or remote code execution if the generated files are later executed as part of a build or runtime process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kiota to version 1.32.5 to fix the path validation bug
  • Validate or restrict the .kiota/workspace.json file; only use configurations from trusted repositories or manually review path entries before generation
  • Restrict write permissions of the environment where Kiota runs to the intended workspace directory, or execute Kiota inside a sandboxed container to prevent accidental writes outside the workspace

Generated by OpenCVE AI on August 17, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4rj6-vrwv-wr8m Microsoft Kiota Workspace-config poisoning: out-of-repo file write + generation-time SSRF
History
Type Values Removed Values Added
Description Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.5. 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.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft kiota
Vendors & Products Microsoft
Microsoft kiota
Type Values Removed Values Added
Description Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.5.
Title Kiota: Workspace-config poisoning: out-of-repo file write + generation-time SSRF
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 3:02 PM
Reserved
Jul 7, 2026, 3:41 PM
Status
Deferred
Published
Jul 16, 2026, 3:16 PM
Modified
Oct 24, 2026, 8:10 PM