CVE-2026-59867

Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref

State
Published
Severity
7.1 High
Published
Jul 16, 2026
Updated
Aug 17, 2026
Reserved
Jul 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:NGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere
  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
kiotamicrosoft
  • >= 1.30.0, < 1.31.1Affected
  • < 1.29.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.