{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.32.4"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5e2a211ac4261988fbdc72c3b268596ea8837b87"
            },
            {
              "fixed": "c4c336aa144464d5569786de62c3021fd12da755"
            }
          ],
          "repo": "https://github.com/microsoft/kiota",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-jqwh-526h-c92j"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59859.json"
  },
  "details": "Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.4, Kiota's PHP generator embedded OpenAPI description, default fields, property names, and other schema-derived strings into PHP double-quoted literals through SanitizeDoubleQuote() in Writers/StringExtensions.cs without escaping $, allowing attacker-controlled ${...}, $var, or {$obj-\u003eprop} interpolation constructs to inject arbitrary PHP code into generated model and request-builder classes. This issue is fixed in version 1.32.4.",
  "id": "CVE-2026-59859",
  "modified": "2026-07-18T03:41:46.767595639Z",
  "published": "2026-07-16T14:40:27.319Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/microsoft/kiota/releases/tag/v1.32.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59859.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/microsoft/kiota/security/advisories/GHSA-jqwh-526h-c92j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59859"
    },
    {
      "type": "FIX",
      "url": "https://github.com/microsoft/kiota/commit/5e2a211ac4261988fbdc72c3b268596ea8837b87"
    },
    {
      "type": "FIX",
      "url": "https://github.com/microsoft/kiota/pull/7863"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Kiota: Code Generation Literal Injection in the PHP Generator"
}