CVE-2026-53597: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft prompty
CVE-2026-53597 is a high-severity code injection vulnerability in Microsoft Prompty, a markdown file format for LLM prompts. Versions from 2.0.0-alpha.1 up to but not including 2.0.0-beta.3 of the @prompty/core TypeScript loader improperly used the gray-matter library without overriding executable JavaScript frontmatter engines. This allowed an attacker to execute arbitrary JavaScript code during prompt loading via a crafted .prompty file with ---js frontmatter. The issue is fixed starting in version 2.0.0-beta.3.
AI Analysis
Technical Summary
Microsoft Prompty versions 2.0.0-alpha.1 through 2.0.0-beta.3 of the @prompty/core TypeScript loader used gray-matter without disabling or overriding executable JavaScript frontmatter engines. This flaw allowed an attacker-controlled .prompty file containing ---js frontmatter to execute arbitrary JavaScript code during prompt loading, constituting a code injection vulnerability (CWE-94). The vulnerability is resolved in version 2.0.0-beta.3.
Potential Impact
An attacker can execute arbitrary JavaScript code during the loading of a malicious .prompty file, potentially leading to unauthorized code execution in the context of the application using the vulnerable loader. This can compromise the integrity and security of the system processing these prompts.
Mitigation Recommendations
A fix is available in version 2.0.0-beta.3 of the @prompty/core package. Users should upgrade to this version or later to remediate the vulnerability. Patch status is not explicitly confirmed beyond this version, so verify with the vendor advisory for the latest remediation guidance.
CVE-2026-53597: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft prompty
Description
CVE-2026-53597 is a high-severity code injection vulnerability in Microsoft Prompty, a markdown file format for LLM prompts. Versions from 2.0.0-alpha.1 up to but not including 2.0.0-beta.3 of the @prompty/core TypeScript loader improperly used the gray-matter library without overriding executable JavaScript frontmatter engines. This allowed an attacker to execute arbitrary JavaScript code during prompt loading via a crafted .prompty file with ---js frontmatter. The issue is fixed starting in version 2.0.0-beta.3.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Microsoft Prompty versions 2.0.0-alpha.1 through 2.0.0-beta.3 of the @prompty/core TypeScript loader used gray-matter without disabling or overriding executable JavaScript frontmatter engines. This flaw allowed an attacker-controlled .prompty file containing ---js frontmatter to execute arbitrary JavaScript code during prompt loading, constituting a code injection vulnerability (CWE-94). The vulnerability is resolved in version 2.0.0-beta.3.
Potential Impact
An attacker can execute arbitrary JavaScript code during the loading of a malicious .prompty file, potentially leading to unauthorized code execution in the context of the application using the vulnerable loader. This can compromise the integrity and security of the system processing these prompts.
Mitigation Recommendations
A fix is available in version 2.0.0-beta.3 of the @prompty/core package. Users should upgrade to this version or later to remediate the vulnerability. Patch status is not explicitly confirmed beyond this version, so verify with the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-09T19:39:52.404Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a58f9c068715ace434105cd
Added to database: 07/16/2026, 15:33:20 UTC
Last enriched: 07/16/2026, 15:48:35 UTC
Last updated: 07/16/2026, 15:48:35 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.