Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @prompty/core
  4. ›
  5. CVE-2026-53597

CVE-2026-53597: Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader

July 17, 2026

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.

References

  • github.com/advisories/GHSA-c4gh-rv8h-q9vw
  • github.com/microsoft/prompty/commit/c27402da2487075be577f06aa79df627fb9d6853
  • github.com/microsoft/prompty/security/advisories/GHSA-c4gh-rv8h-q9vw
  • nvd.nist.gov/vuln/detail/CVE-2026-53597

Code Behaviors & Features

Detect and mitigate CVE-2026-53597 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0-alpha.1 before 2.0.0-beta.3

Fixed versions

  • 2.0.0-beta.3

Solution

Upgrade to version 2.0.0-beta.3 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/@prompty/core/CVE-2026-53597.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.