Prompty
Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer
Prompty is a markdown file format (.prompty) for LLM prompts. Prior to 0.1.5 and 2.0.0-beta.5, the TypeScript Nunjucks renderer evaluated untrusted .prompty template bodies with unrestricted JavaScript member access. An attacker-controlled template could traverse constructor and prototype properties to execute JavaScript in the host Node.js process. This issue is fixed in versions 0.1.5 and 2.0.0-beta.5.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS10.0critical · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
microsoft prompty
- < 0.1.5
- >= 2.0.0-alpha.1, < 2.0.0-beta.5
Fixed in 0.1.5, 2.0.0-beta.5
Mitigation
Upgrade prompty to 0.1.5 or 2.0.0-beta.5 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.