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

Impact

Kiota is an OpenAPI‑based HTTP client generator that, before version 1.32.5, did not validate the output path values defined in a .kiota/workspace.json configuration file. The vulnerability allows a poisoned workspace configuration to contain absolute, UNC, drive‑letter, or traversal paths, enabling Kiota to write generated client files anywhere on the host during the generation process. An attacker who can influence the workspace configuration—such as by submitting a malicious repository or pull request—could overwrite system files, inject malicious code, or create files that later execute, 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 July 31, 2026 at 01:54 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 July 31, 2026 at 01:54 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

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-07-16T15:33:19.970Z

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

Link: CVE-2026-59863

cve-icon Vulnrichment

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

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T02:00:05Z

Weaknesses
  • CWE-22

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