{
  "id": "CVE-2026-59860",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59860",
  "published_at": "2026-07-16T14:34:24.549Z",
  "title": "Kiota: XML Doc-Comment Newline Breakout Code Injection",
  "vendor": "microsoft",
  "product": "kiota",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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.3, Kiota is affected by a code-generation injection vulnerability in the C# XML documentation-comment sink (the description, externalDocs label, and externalDocs link fields emitted as /// … comments). When text from an OpenAPI description is written into single-line XML doc comments without stripping newline and Unicode line-terminator characters, an attacker can break out of the /// comment line and inject additional code into generated C# clients. This issue is fixed in version 1.29.1 and 1.32.3.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 8.7
  },
  "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-3hrf-2gc2-mx32"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/microsoft/kiota/pull/7831"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/microsoft/kiota/releases/tag/v1.32.3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
