{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "2.0.0-alpha.1"
              },
              {
                "fixed": "2.0.0-beta.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "30acb714bf68259760916c97b0c8fdaf1c5a75a0"
            },
            {
              "fixed": "c27402da2487075be577f06aa79df627fb9d6853"
            }
          ],
          "repo": "https://github.com/microsoft/prompty",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c4gh-rv8h-q9vw"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53597.json"
  },
  "details": "Prompty is a markdown file format (.prompty) for LLM prompts. From 2.0.0-alpha.1 until 2.0.0-beta.3, the @prompty/core TypeScript loader in runtime/typescript/packages/core/src/core/loader.ts used gray-matter without overriding executable js and javascript frontmatter engines, allowing an attacker-controlled .prompty file with ---js frontmatter to execute arbitrary JavaScript during prompt loading. This issue is fixed in version 2.0.0-beta.3.",
  "id": "CVE-2026-53597",
  "modified": "2026-07-19T03:31:06.913190597Z",
  "published": "2026-07-16T14:54:55.075Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53597.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/microsoft/prompty/security/advisories/GHSA-c4gh-rv8h-q9vw"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53597"
    },
    {
      "type": "FIX",
      "url": "https://github.com/microsoft/prompty/commit/c27402da2487075be577f06aa79df627fb9d6853"
    }
  ],
  "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": "Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader"
}