CVE-2026-73299: Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer
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.
Security readout for executives and security teams
Plain-English summary
Prompty can let an attacker-controlled prompt template run JavaScript inside the application’s Node.js process. Successful exploitation could expose secrets, alter data, disrupt services, or compromise connected systems. Risk is highest where users or external systems can supply or modify .prompty template bodies.
Executive priority
Treat exposed deployments as an immediate remediation priority because successful exploitation can compromise confidentiality, integrity, and availability of the host process. Prioritize systems accepting templates from users, repositories, integrations, or other untrusted sources. Internal deployments without such input paths still require prompt inventory and upgrading.
Technical view
Before 0.1.5 and from 2.0.0-alpha.1 through 2.0.0-beta.4, the TypeScript Nunjucks renderer allowed unrestricted JavaScript member access. A malicious template could traverse constructor or prototype properties and execute code in the host Node.js process. The issue is classified as CWE-1336 and CWE-94 with CVSS 3.1 score 10.0.
Likely exposure
Exposure requires an affected Prompty version and a path for attacker-controlled .prompty template bodies to reach the TypeScript Nunjucks renderer. Internet-facing prompt upload, editing, repository ingestion, or automation workflows may increase risk. The supplied sources do not establish deployment prevalence or identify affected downstream applications.
Exploitation context
The CVSS vector describes network-reachable, unauthenticated exploitation requiring no user interaction, but actual reachability depends on how templates enter an application. The bundle marks this CVE as absent from KEV and provides no evidence of active exploitation. Public proof-of-concept availability is not established by the supplied evidence.
Researcher notes
The affected component is the TypeScript Nunjucks renderer in Microsoft Prompty. Listed ranges are below 0.1.5 and 2.0.0-alpha.1 through 2.0.0-beta.4. No CPEs are supplied. The source bundle identifies fixes and relevant pull requests and commits, but does not establish exploit activity, public exploit maturity, or downstream product exposure.
Mitigation direction
Upgrade stable deployments to 0.1.5 or later.
Upgrade prerelease 2.x deployments to 2.0.0-beta.5 or later.
Until upgraded, prevent untrusted parties and automated sources from supplying or modifying .prompty template bodies.
Rebuild and redeploy affected services after updating resolved dependencies.
Validation and detection
Inspect manifests, lockfiles, and deployed dependency trees for affected Prompty versions.
Confirm production resolves 0.1.5, 2.0.0-beta.5, or a later version.
Trace every workflow that creates, imports, edits, or renders .prompty template bodies.
Verify access controls prevent untrusted template modification where upgrades are pending.
Use safe regression tests to confirm constructor and prototype traversal is rejected without executing code.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1336: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
7Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1336 · source CWE mapping
Improper Neutralization of Special Elements Used in a Template Engine
Improper Neutralization of Special Elements Used in a Template Engine represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.