Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Microsoft | prompty | 2.0.0-alpha.1 to before 2.0.0-beta.3 | 2.0.0-beta.3 | Patch available | CNA |
| — | @prompty/core (npm) | 2.0.0-alpha.1 to before 2.0.0-beta.3 | 2.0.0-beta.3 | Patch available | GHSA-c4gh-rv8h-q9vw |
- prompty VendorMicrosoft Affected 2.0.0-alpha.1 to before 2.0.0-beta.3 Fixed in 2.0.0-beta.3 Patch available CNA
- @prompty/core (npm) Vendor— Affected 2.0.0-alpha.1 to before 2.0.0-beta.3 Fixed in 2.0.0-beta.3 Patch available GHSA-c4gh-rv8h-q9vw
Remediation
- Fix · CNA prompty (microsoft) Fixed in 2.0.0-beta.3
- Fix · GHSA-c4gh-rv8h-q9vw @prompty/core (npm) Fixed in 2.0.0-beta.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53597
- 2026-10-03 Alias added: GHSA-c4gh-rv8h-q9vw
References
More Microsoft vulnerabilities
- TI-2026-42212 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-37256 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-26194 Windows Internet Key Exchange (IKE) Service Extensions Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2026-16982 Microsoft SharePoint Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-36863 Windows Server Update Service (WSUS) Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2025-33671 Microsoft SharePoint Server Remote Code Execution Vulnerability KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-53597 · CVE Program
- CVE-2026-53597 · NVD
- FIRST EPSS
- GHSA-c4gh-rv8h-q9vw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences