{"id":"CVE-2026-53597","published":"2026-07-16T14:54:55Z","modified":"2026-07-18T02:51:03Z","title":"Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader","vendor":"Microsoft","product":"prompty","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00972,"percentile":0.62803,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/microsoft/prompty/security/advisories/GHSA-c4gh-rv8h-q9vw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/prompty/commit/c27402da2487075be577f06aa79df627fb9d6853","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":12.56},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"prompty","versions":[">= 2.0.0-alpha.1, < 2.0.0-beta.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-18T02:50:54.007782Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@prompty/core","vulnerableRanges":[">=2.0.0-alpha.1, <2.0.0-beta.3"],"patched":["2.0.0-beta.3"],"from":["GHSA-c4gh-rv8h-q9vw"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44939","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-microsoft-prompty-cve-2026-53597","parents":[{"from":"CVE-2026-53598","to":"CVE-2026-53597","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@prompty/core","fromFixed":"2.0.0-beta.2","toFixed":"2.0.0-beta.3","daysApart":0},{"kind":"same-code","provenance":"machine","files":["runtime/typescript/packages/core/src/core/loader.ts"],"commits":["https://github.com/microsoft/prompty/commit/c27402da2487075be577f06aa79df627fb9d6853","https://github.com/microsoft/prompty/commit/88ac9948d7d37995edbb2f6d36913436626c39e1"],"basis":"shared function","functions":["buildAgent","defaultSaveContext"]},{"kind":"similar","provenance":"machine","score":0.62,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-53598","published":"2026-07-16","fixed":"2.0.0-beta.2","kev":false},{"cve":"CVE-2026-53597","published":"2026-07-16","fixed":"2.0.0-beta.3","kev":false}],"package":"npm:@prompty/core"}}