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 2.4%top 17%

CVE-2026-59867: 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:48:11 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 resolved OpenAPI $ref values by fetching remote http(s) URLs and reading local absolute or out-of-tree file paths, allowing `kiota generate` on an attacker-controlled or attacker-influenced description to perform build-time SSRF, remote file inclusion, and local file inclusion by inlining external schemas such as REMOTE_KIOTA_PROP or Leaked into generated clients. This issue is fixed in version 1.29.1 and 1.32.5 by AllowedExternalOriginsStreamLoader and the --allowed-external-origins option.

CVSS v3.1

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A: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:23:51 UTC

Technical Analysis

Microsoft Kiota's OpenAPI $ref resolution mechanism in versions before 1.32.5 fetches remote HTTP(S) URLs and reads local files, including absolute and out-of-tree paths, inlining their schemas into the generated client. This behavior enables server-side request forgery (SSRF), remote file inclusion (RFI), and local file inclusion (LFI) during the build process when processing attacker-controlled or influenced OpenAPI specifications. Although the output is escaped to prevent code injection or remote code execution, the side effects include unauthorized outbound requests from the build environment and disclosure of local files not accessible to the attacker. The vulnerability is addressed by introducing a default-deny external reference loader and an explicit allow-list mechanism via the --allowed-external-origins parameter in Kiota versions 1.29.1 and 1.32.5 and later.

Potential Impact

The vulnerability allows attackers to induce SSRF from the build or CI host, disclose arbitrary local files through path traversal, and include untrusted remote content in the generated client code. While no remote code execution is possible, the side effects can expose sensitive internal resources and data from the build environment. This can lead to leakage of confidential information and unintended network requests from trusted environments.

Mitigation Recommendations

Upgrade to Microsoft Kiota version 1.29.1, 1.32.5, or later. These versions implement a default-deny policy for external $ref resolution, blocking all remote HTTP(S) URLs and local file paths unless explicitly allow-listed via the new --allowed-external-origins parameter. Only trusted origins and paths should be added to the allow-list. No other mitigation is required as the vulnerability is fully addressed by these updates.

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
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a58f9c068715ace434105fa

Added to database: 07/16/2026, 15:33:20 UTC

Last enriched: 08/17/2026, 16:23:51 UTC

Last updated: 08/30/2026, 22:52:12 UTC

Views: 77

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