CVE-2026-53597 Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader
HighCVSS 8.7
EPSS 0.97%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| prompty @prompty/core(npm) | >= 2.0.0-alpha.1, < 2.0.0-beta.3 | 2.0.0-beta.3 | Fixed |
| Microsoft prompty | = >= 2.0.0-alpha.1, < 2.0.0-beta.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft prompty | = >= 2.0.0-alpha.1, < 2.0.0-beta.3 | No fix listed |
| prompty @prompty/core(npm) | >= 2.0.0-alpha.1, < 2.0.0-beta.3 | 2.0.0-beta.3 |
References
- https://github.com/microsoft/prompty/security/advisories/GHSA-c4gh-rv8h-q9vw vendor-advisory
- https://github.com/microsoft/prompty/commit/c27402da2487075be577f06aa79df627fb9d6853 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product