Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious .prompty template to app
-
DeliveryRenderer evaluates untrusted template body
-
ExploitTraverse constructor/prototype to Function
-
ExecutionExecute arbitrary JavaScript in Node.js host
-
ImpactFull host compromise (C/I/A)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application render an attacker-controlled .prompty template body through @prompty/core's TypeScript Nunjucks renderer - i.e., the app must ingest untrusted, community-supplied, cloned, or LLM-generated .prompty files rather than only first-party templates. Given that condition, no further authentication or user interaction is needed (PR:N/UI:N/AC:L): the attacker's template uses constructor/prototype/__proto__ member traversal to reach a JavaScript execution primitive. The primary limiting factor is deployment mode - installations that render only trusted, first-party templates are not exploitable - along with runtime scope: only the TypeScript runtime (@prompty/core <= 0.1.4 and 2.0.0-alpha.1..2.0.0-beta.4) is affected, not the Python implementation. |
| Impact | The signals largely align toward high real-world severity but with an important nuance about the attack surface. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) scores 10.0, indicating network-reachable, low-complexity, unauthenticated exploitation with full confidentiality/integrity/availability impact and a scope change (code escaping the template sandbox into the Node.js host). CWE-94 and vendor-confirmed RCE support the high technical-impact rating. However, the practical precondition is that the application must actually feed attacker-controlled .prompty content into the renderer - the vulnerability is only 'unauthenticated remote' if the app accepts untrusted templates over the network; in deployments that render only first-party, trusted templates the exposure is effectively nil. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified; no KEV listing and no POC signal were provided, so there is currently no evidence of active or public exploitation despite the perfect CVSS. Net: treat as a genuine critical for any multi-tenant or template-ingesting deployment, but the maximal 10.0 somewhat overstates risk for the common case of trusted-template-only usage. |
| Exploit ScenarioDerived | An application lets users submit or import .prompty prompt files - for example a prompt-sharing gallery, a repo that clones community templates, or a pipeline that renders LLM-generated .prompty content - and passes them to @prompty/core's Nunjucks renderer. The attacker crafts a template whose body traverses constructor and prototype properties to reach the JavaScript Function constructor and execute code, gaining arbitrary command execution in the Node.js host process. Given the low-complexity, no-privilege CVSS vector this requires only that the malicious template be rendered; no public POC was provided in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Server-side template injection leading to remote code execution in Microsoft's @prompty/core npm package (TypeScript runtime) allows an attacker who controls a .prompty template body to execute arbitrary JavaScript in the host Node.js process. The flaw affects @prompty/core versions <= 0.1.4 and the 2.0.0-alpha.1 through 2.0.0-beta.4 pre-releases, where the Nunjucks renderer permitted unrestricted member access, letting a malicious template walk constructor/prototype chains to reach a JavaScript execution primitive. No public exploit identified at time of analysis and it is not listed in CISA KEV, but the maximum CVSS of 10.0 and CWE-94 code-injection root cause make this a critical-priority patch for any app that renders untrusted, community-supplied, cloned, or LLM-generated .prompty files.
RemediationAI
Vendor-released patch: upgrade @prompty/core to 0.1.5 (for the 0.1.x line) or 2.0.0-beta.5 (for the 2.0.0 pre-release line) or later, per GHSA-w28w-gp39-m4p6 and PR https://github.com/microsoft/prompty/pull/404. The patched renderer sanitizes render inputs to own-data-only values, rejects __proto__/constructor/prototype member traversal, and disallows all template function calls, while preserving ordinary interpolation, conditionals, loops, and own nested data properties. If you cannot upgrade immediately, the concrete compensating control is to stop rendering untrusted .prompty content: restrict the renderer to first-party, trusted templates only, and treat community-supplied, cloned, or LLM-generated .prompty files as untrusted input that must not reach @prompty/core's Nunjucks renderer (trade-off: this disables any workflow that legitimately ingests external templates). Because exploitation runs with the Node.js process's privileges, also run the rendering service under least privilege and process isolation so a successful injection has reduced blast radius. Advisory and fix references: https://github.com/microsoft/prompty/security/advisories/GHSA-w28w-gp39-m4p6, https://github.com/microsoft/prompty/pull/404, https://github.com/microsoft/prompty/pull/405.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Prompty defines a markdown-based (.prompty) file format for authoring LLM prompts, and the affected component is the TypeScript @prompty/core package's Nunjucks-based template renderer. Nunjucks is a Jinja-style server-side templating engine; by design it interpolates data into templates, but here the renderer evaluated the untrusted template body itself with unrestricted JavaScript member access. This is a textbook CWE-94 (Improper Control of Generation of Code / code injection) manifesting as server-side template injection (SSTI): because Nunjucks' memberLookup allowed traversal of properties like constructor, __proto__, and prototype, an attacker could pivot from an ordinary object to Function/constructor references and synthesize executable code. The CPE cpe:2.3:a:microsoft:prompty confirms the Microsoft-published Prompty product as the affected software, and the fix (PR #404) reinstates safety by overriding Nunjucks' memberLookup to reject __proto__/constructor/prototype, overriding callWrap to forbid any template function call, and deep-sanitizing render inputs to own-data-only, null-prototype values.
Know when Prompty gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Untrusted template rendered without auth or interaction yields arbitrary code execution escaping the template sandbox into the Node.js host, so PR:N/UI:N/AC:L with scope change and full C/I/A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Prompty is a markdown file format (.prompty) for LLM prompts. Prior to 0.1.5 and 2.0.0-beta.5, the TypeScript Nunjucks renderer evaluated untrusted .prompty template bodies with unrestricted JavaScript member access. An attacker-controlled template could traverse constructor and prototype properties to execute JavaScript in the host Node.js process. This issue is fixed in versions 0.1.5 and 2.0.0-beta.5.
Articles & Coverage 2
Executive ViewAI
Microsoft's @prompty/core npm package contains a critical remote code execution vulnerability (CVE-2026-73299) that permits arbitrary code execution in Node.js environments processing untrusted .prompty templates, affecting enterprises using AI-powered template systems and collaborative development platforms. While no public exploit has been identified at time of analysis, the CVSS 10.0 score and unrestricted JavaScript execution capability create immediate risk of infrastructure compromise. Urgent action is required to inventory affected systems and restrict template processing to approved sources only.
No vendor-released patch identified at time of analysis. Restrict .prompty template processing to pre-approved, internally-maintained sources only; disable dynamic template rendering from external inputs; isolate affected services in low-privilege containers with network segmentation; implement strict input validation and allowlist controls on all template sources; and establish daily monitoring of CISA KEV and Microsoft Security advisories for patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary JavaScript execution in Microsoft's @prompty/core TypeScript loader (2.0.0-alpha.1 through 2.0.0-beta.2) allow
Arbitrary file read in Microsoft Prompty's multi-ecosystem runtime libraries (PyPI, npm, Rust, NuGet) exposes any file r
EUVD-2026-57382
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB