3 matches found
Code Injection
@prompty/core is vulnerable to Code Injection. The vulnerability is due to the use of gray-matter with executable JavaScript frontmatter enabled, which allows an attacker to execute arbitrary JavaScript by supplying a malicious .prompty file...
Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader
Summary The TypeScript Prompty loader used gray-matter without overriding executable frontmatter engines. gray-matter supports JavaScript frontmatter blocks such as ---js and evaluates them while parsing. An attacker-controlled .prompty file could therefore execute arbitrary JavaScript during...
GHSA-WXHM-2MQ7-7697 Prompty: Arbitrary file read via file reference expansion
Summary Prompty loaders expanded $file:... references in .prompty frontmatter without enforcing that the resolved path stayed within an authorized directory. An attacker-controlled prompt file could use path traversal or an absolute path to cause the host application to read files accessible to t...