CVE-2026-59867: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota
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.
AI Analysis
Technical Summary
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.
CVE-2026-59867: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft 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
Affected software
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
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.
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, 10:52:10 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.