CVE-2026-73851: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota
CVE-2026-73851 is a path traversal vulnerability in Microsoft Kiota affecting versions prior to 1.29.1. It allows an attacker controlling the OpenAPI description to supply crafted file references that resolve outside the intended plugin package, potentially causing unauthorized file inclusion or disclosure. Initial mitigations rejected unsafe paths based on raw strings but failed to decode percent-encoded or obfuscated inputs, allowing bypasses. Subsequent fixes decode inputs before validation and reject control characters and Unicode homoglyphs. Users should upgrade to the first release after version 1.33.0 that includes these fixes. Workarounds include generating plugins only from trusted OpenAPI descriptions and reviewing manifests for unsafe file references.
AI Analysis
Technical Summary
Microsoft Kiota generates AI plugin manifests from OpenAPI descriptions. When the OpenAPI description includes certain AI capabilities referencing files, these file paths are resolved relative to the plugin package. CVE-2026-73851 arises because Kiota did not properly validate these file references after decoding percent-encoded or obfuscated inputs, allowing path traversal outside the package boundary (CWE-22) and inclusion of untrusted functionality (CWE-829). Initial mitigation in version 1.32.5 checked raw strings but missed encoded bypasses. Follow-up fixes decode references fully before validation, reject control characters, and normalize Unicode to prevent bypasses. The vulnerability affects versions prior to 1.29.1, with fixes included in releases after 1.33.0.
Potential Impact
An attacker who can control or tamper with the OpenAPI description used by Kiota can craft file references that escape the intended plugin package directory. This can lead to inclusion or disclosure of arbitrary files outside the package boundary when the manifest is consumed by an AI host. This may expose sensitive files or cause unintended functionality inclusion, impacting confidentiality and integrity. The CVSS 4.0 score is 6.1 (medium severity), reflecting network attack vector, no privileges required, user interaction needed, and high scope impact.
Mitigation Recommendations
A fix is available in Microsoft Kiota versions released after 1.33.0, which properly decode and validate file references to prevent path traversal. Users should upgrade to these fixed versions. Until upgrading, users should only generate clients/plugins from trusted OpenAPI descriptions and manually review generated plugin manifests to ensure that the 'response_semantics.static_template.file' field contains only simple relative paths within the expected package folder, rejecting any paths with traversal sequences, absolute paths, URIs, or percent-encoded separators.
CVE-2026-73851: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in microsoft kiota
Description
CVE-2026-73851 is a path traversal vulnerability in Microsoft Kiota affecting versions prior to 1.29.1. It allows an attacker controlling the OpenAPI description to supply crafted file references that resolve outside the intended plugin package, potentially causing unauthorized file inclusion or disclosure. Initial mitigations rejected unsafe paths based on raw strings but failed to decode percent-encoded or obfuscated inputs, allowing bypasses. Subsequent fixes decode inputs before validation and reject control characters and Unicode homoglyphs. Users should upgrade to the first release after version 1.33.0 that includes these fixes. Workarounds include generating plugins only from trusted OpenAPI descriptions and reviewing manifests for unsafe file references.
CVSS v4.0
Score 6.1medium
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 generates AI plugin manifests from OpenAPI descriptions. When the OpenAPI description includes certain AI capabilities referencing files, these file paths are resolved relative to the plugin package. CVE-2026-73851 arises because Kiota did not properly validate these file references after decoding percent-encoded or obfuscated inputs, allowing path traversal outside the package boundary (CWE-22) and inclusion of untrusted functionality (CWE-829). Initial mitigation in version 1.32.5 checked raw strings but missed encoded bypasses. Follow-up fixes decode references fully before validation, reject control characters, and normalize Unicode to prevent bypasses. The vulnerability affects versions prior to 1.29.1, with fixes included in releases after 1.33.0.
Potential Impact
An attacker who can control or tamper with the OpenAPI description used by Kiota can craft file references that escape the intended plugin package directory. This can lead to inclusion or disclosure of arbitrary files outside the package boundary when the manifest is consumed by an AI host. This may expose sensitive files or cause unintended functionality inclusion, impacting confidentiality and integrity. The CVSS 4.0 score is 6.1 (medium severity), reflecting network attack vector, no privileges required, user interaction needed, and high scope impact.
Mitigation Recommendations
A fix is available in Microsoft Kiota versions released after 1.33.0, which properly decode and validate file references to prevent path traversal. Users should upgrade to these fixed versions. Until upgrading, users should only generate clients/plugins from trusted OpenAPI descriptions and manually review generated plugin manifests to ensure that the 'response_semantics.static_template.file' field contains only simple relative paths within the expected package folder, rejecting any paths with traversal sequences, absolute paths, URIs, or percent-encoded separators.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-13T17:44:28.644Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Gcve Source
- db.gcve.eu
Threat ID: 6a83334cbf8831d5392a43fb
Added to database: 08/17/2026, 16:14:04 UTC
Last enriched: 08/17/2026, 16:23:18 UTC
Last updated: 08/17/2026, 22:39:00 UTC
Views: 6
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.