Vulnerability library
Security checkJuly 17, 2026

Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@prompty/core

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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 prompt loading.

Recommendation

Update the @prompty/core package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 2.0.0-alpha.1, < 2.0.0-beta.3
  • Patched version(s): 2.0.0-beta.3

References

Could your website be exposed too?

SmartScanner can check your website for Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 17, 2026