Skip to main content

Microsoft Kiota CVE-2026-59867

| EUVDEUVD-2026-44937 HIGH
Path Traversal (CWE-22)
2026-07-16 GitHub_M GHSA-rg4h-fpcp-2qm8
7.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft OpenAPI spec with malicious $ref
  2. Delivery
    Deliver spec to victim developer/CI
  3. Exploit
    Victim runs kiota generate
  4. Execution
    Kiota resolves ref via SSRF/LFI
  5. Persist
    External schema fetched and inlined
  6. Impact
    Internal data leaked into generated client

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim to run a Kiota generation command (e.g. kiota generate) against an OpenAPI description that is attacker-controlled or attacker-influenced and that contains crafted $ref values pointing at remote http(s) URLs or local absolute/out-of-tree file paths - this is the UI:R (user interaction) requirement in the CVSS vector. On vulnerable versions (<1.32.5) no special configuration is needed because external references were loaded by default, so the fetch/read succeeds automatically. Limiting factors: it only triggers when generation is actually run against an untrusted or influenced spec, so first-party trusted-only pipelines are not exposed; SSRF reach is bounded by the network the build host can access, and LFI is bounded by the filesystem permissions of the process running Kiota. On patched 1.32.5+ hosts, exploitation additionally requires an over-broad --allowed-external-origins allowlist (such as *) to be configured.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N, base 7.1) captures the real profile: network-reachable side effects (SSRF/RFI) and high confidentiality impact from local file inclusion, but gated by user interaction - a developer must actually run kiota generate against a malicious or attacker-influenced description. No EPSS score, KEV listing, or SSVC decision data was provided, and no public exploit was identified, so there is no evidence of active or automated exploitation. This is best treated as a supply-chain / build-toolchain hardening issue rather than a directly internet-exploitable server flaw: the 'network' attack vector reflects the SSRF fetch capability, not an unauthenticated remote attacker hitting a listening service. Priority scales with whether an organization generates clients from third-party or untrusted OpenAPI descriptions (higher risk) versus only first-party trusted specs (lower risk). One tension worth verifying: CVSS marks C:H/I:L, consistent with data exfiltration/inclusion rather than code execution.

Exploit ScenarioDerived

A developer generates a client from an OpenAPI description supplied by a third party (or whose $ref values an attacker can influence), running kiota generate in a CI pipeline with internal network access. During reference resolution, Kiota fetches an attacker-specified internal URL (SSRF) or reads a local file such as a credentials or config file, then inlines that content into the generated client, exposing or exfiltrating it. No public proof-of-concept has been identified, but the primitive is straightforward given control over $ref targets.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 16, 2026

Build-time SSRF, remote file inclusion, and local file inclusion in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description force the kiota generate command to fetch arbitrary remote http(s) URLs and read local absolute or out-of-tree file paths while resolving $ref values. Because Kiota inlined those external schemas into generated clients, an attacker could exfiltrate internal endpoints or leak local file contents (e.g. REMOTE_KIOTA_PROP-style properties) into produced code. No public exploit has been identified at time of analysis; the risk is developer/CI-toolchain oriented and requires a developer to run generation against a malicious or influenced description (CVSS 7.1).

RemediationAI

Vendor-released patch: upgrade Microsoft Kiota to 1.32.5 or later, where external references are blocked by default via AllowedExternalOriginsStreamLoader. After upgrading, only re-enable external reference loading where genuinely required by passing --allowed-external-origins with the narrowest possible allowlist (specific full URIs or paths rather than the wildcard *, which reopens the original SSRF/LFI exposure). As a general control regardless of version, treat OpenAPI descriptions from third parties as untrusted input: run generation for untrusted specs in an isolated/sandboxed CI runner with no access to internal networks or secrets, and pre-inspect descriptions for external $ref values. See advisory GHSA-rg4h-fpcp-2qm8 (https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8) and the release notes at https://github.com/microsoft/kiota/releases/tag/v1.32.5.

Affected VersionsENISA

kiota < 1.32.5

Affected Packages

nuget microsoft.openapi.kiota fix: 1.29.1, 1.32.5
nuget microsoft.openapi.kiota.builder fix: 1.29.1, 1.32.5
euvd kiota fix: 1.32.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kiota is Microsoft's OpenAPI-based HTTP client code generator, widely used in the .NET and Microsoft Graph SDK ecosystems to turn OpenAPI/Swagger descriptions into typed API clients across languages. The flaw is a CWE-22 path-traversal / external-reference resolution issue in Kiota.Builder's stream-loading layer: when the OpenAPI parser encountered a $ref, the default DefaultStreamLoader transparently resolved and loaded the referenced resource, whether a remote http(s) URI or a local absolute/relative filesystem path outside the project tree. Because $ref targets are attacker-influenceable data inside the description document, schema resolution became an unbounded fetch/read primitive. The fix (PR #7888, commit cccd798) introduces AllowedExternalOriginsStreamLoader, which denies all external references by default and only loads origins explicitly permitted via the new --allowed-external-origins option (supporting *, full URIs, URI patterns, and path patterns).

Know when Kiota gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 7.1 HIGH

SSRF fetch gives AV:N with no auth to the tool (PR:N), but a developer must run generation on a malicious spec (UI:R); LFI yields C:H while schema inlining gives only I:L and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Jul 16, 2026 - 17:03 EUVD
CVE Published
Jul 16, 2026 - 14:48 cve.org
HIGH 7.1

DescriptionCVE.org

Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.5 by AllowedExternalOriginsStreamLoader and the --allowed-external-origins option.

Executive ViewAI

Why It Matters

Microsoft Kiota, a developer code-generation tool, contains a build-time vulnerability (CVE-2026-59867, CVSS 7.1) that allows attackers to manipulate OpenAPI specifications to exfiltrate internal API endpoints and local file contents into generated client code. Organizations face supply-chain risk if developers generate code from untrusted or attacker-influenced API specifications, potentially introducing compromised dependencies into production applications.

Business Impact: High
Compensating Controls

Restrict kiota generate execution to specifications originating from signed, internally-audited sources only; require code-review approval of all generated client code before version control or production use; disable Kiota usage in untrusted development environments pending patch availability; consider temporary migration to alternative code-generation frameworks if patch timeline extends beyond 30 days.

Threat Intelligence Overview

EPSS Score
1.9%
Top 22% exploitable
Prevalence
Medium
popular Microsoft OpenAPI/Graph client generator, but a developer build-time tool
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 1.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Kiota

View all
CVE-2026-59865 CRITICAL
9.3 Jul 16

Command injection in Microsoft Kiota before 1.32.5 lets a malicious or compromised OpenAPI description dictate the insta

CVE-2026-59866 CRITICAL
9.3 Jul 16

Path traversal and code injection in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description write

CVE-2026-59864 CRITICAL
9.3 Jul 16

Path traversal in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description inject unvalidated `stat

CVE-2026-105796 HIGH
8.8 Oct 06

Code injection in Microsoft Kiota 0.5.0 through pre-1.35.0 allows attacker-controlled text embedded in an OpenAPI descri

CVE-2026-59859 HIGH
8.7 Jul 16

PHP code generation in Microsoft Kiota prior to 1.32.4 permits injection of arbitrary PHP code when the generator proces

CVE-2026-59860 HIGH
8.7 Jul 16

Code-generation injection in Microsoft Kiota's C# XML documentation-comment writer allows an attacker who controls or co

CVE-2026-59861 HIGH
7.5 Jul 16

Code injection in Microsoft Kiota Ruby code generator allows remote code execution through crafted OpenAPI specification

CVE-2026-59862 HIGH
7.5 Jul 16

Code injection in Microsoft Kiota's Python client generator (versions prior to 1.32.0) allows an attacker who controls a

CVE-2026-41134 HIGH
7.3 Apr 22

Code injection in Microsoft Kiota versions prior to 1.31.1 allows attackers who control or tamper with OpenAPI descripti

CVE-2026-59863 HIGH
7.0 Jul 16

Arbitrary file write via path traversal in Microsoft Kiota (OpenAPI HTTP client/plugin code generator) before 1.32.5 all

CVE-2026-105795 LOW POC
3.1 Oct 06

Microsoft Kiota, the OpenAPI-based HTTP client code generator, fails to validate the x-ai-capabilities.response_semantic

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy