CVE-2026-73299

Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer

Published Aug 12, 2026 CVSS 3.1 · 10 Critical EPSS 1.8% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Prompty’s markdown files are parsed by a TypeScript Nunjucks renderer that, before version 0.1.5 and 2.0.0‑beta.5, evaluated untrusted template bodies with unrestricted JavaScript member access. An attacker who can supply a crafted .prompty file can traverse constructor and prototype properties and execute arbitrary JavaScript in the host Node.js process. The vulnerability is therefore a classic server‑side template injection that can lead to remote code execution.

Affected Systems

Microsoft Prompty is the vendor; affected versions are all releases older than 0.1.5 and 2.0.0‑beta.5. Any deployment that processes untrusted .prompty files through the default Nunjucks renderer is potentially impacted.

Risk and Exploitability

The CVSS score is 10, indicating extreme severity. The EPSS score of 0.01215 (≈1.2%) indicates a very low probability of exploitation, but the lack of a KEV listing suggests no publicly confirmed exploits yet. The attack path requires the attacker to deliver a malicious template—likely via user input, file upload, or external API—and the vulnerability can be leveraged once the template is parsed, making it a straightforward local or remote code execution vector depending on how the template is introduced.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Prompty to version 0.1.5 or 2.0.0‑beta.5 or later to apply the fixed Nunjucks renderer.
  • Ensure that only trusted or sanitized .prompty files are processed; if files come from untrusted sources, reject them or move the rendering operation to a strictly isolated environment.
  • If an upgrade is not immediately possible, revert to a patched version of the Nunjucks library identified in the GitHub commits and reapply the restricted member access configuration to prevent unrestricted JavaScript execution.

Generated by OpenCVE AI on August 13, 2026 at 15:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft prompty
Vendors & Products Microsoft
Microsoft prompty
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer
Weaknesses CWE-1336
CWE-94
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2026, 6:54 PM
Reserved
Aug 11, 2026, 7:42 PM
Status
Deferred
Published
Aug 12, 2026, 6:18 PM
Modified
Oct 24, 2026, 3:10 PM