{
  "id": "CVE-2026-59867",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59867",
  "published_at": "2026-07-16T14:48:11.958Z",
  "title": "Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref",
  "vendor": "microsoft",
  "product": "kiota",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "microsoft",
        "product": "kiota",
        "ranges": [
          "\u003e= 1.30.0, \u003c 1.31.1",
          "\u003c 1.29.1"
        ],
        "fixed_in": [
          "1.31.1",
          "1.29.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade kiota to 1.31.1 or 1.29.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/microsoft/kiota/pull/7888"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/microsoft/kiota/releases/tag/v1.32.5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
