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.
Published: 2026-07-16
Score: 7 High
EPSS: 1.4% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 17 Aug 2026 15:15:00 +0000

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.

Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 16 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft kiota
Vendors & Products Microsoft
Microsoft kiota

Thu, 16 Jul 2026 14:45:00 +0000

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T15:02:40.475Z

Reserved: 2026-07-07T15:41:53.607Z

Link: CVE-2026-59863

cve-icon Vulnrichment

Updated: 2026-07-16T15:22:56.262Z

cve-icon NVD

Status : Deferred

Published: 2026-07-16T15:16:35.707

Modified: 2026-08-17T15:16:56.730

Link: CVE-2026-59863

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T20:30:17Z

Weaknesses
  • CWE-22

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