Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-53597: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft prompty

0
High
VulnerabilityCVE-2026-53597cvecve-2026-53597cwe-94
Published: 07/16/2026 (07/16/2026, 14:54:55 UTC)
Source: CVE Database V5
Vendor/Project: microsoft
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
microsoft/prompty
pkg:github/microsoft/prompty

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 15:48:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses