Skip to content
CVSS 10.0CVSS 10.0 · CRITICAL

CVE-2026-73299RCE in Prompty via TypeScript template injection

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.

View on NVD

Analysis

La biblioteca Prompty para TypeScript permite a un atacante ejecutar código JavaScript arbitrario en el proceso de Node.js mediante la manipulación de plantillas .prompty. Al explotar una vulnerabilidad de inyección en el renderizador Nunjucks, es posible comprometer totalmente el entorno de ejecución del backend. Se recomienda actualizar inmediatamente a las versiones 0.1.5 o 2.0.0-beta.5 para mitigar este riesgo de ejecución remota de código.

Relevant roles

JavascriptTypescriptBackendIAMachineLearningCyberSecurity

Severity

Score: 10.0(CRITICAL)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
AV: NETWORK
AC: LOW
PR: NONE
UI: NONE
S: CHANGED
C: HIGH
I: HIGH
A: HIGH
Weakness (CWE): CWE-94CWE-1336

EPSS

No EPSS score yet (CVE may be too fresh).

Technical 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.

Published: 8/12/2026, 6:18:15 PM
Last modified: 8/12/2026, 8:17:53 PM

References

HomeEventsBlogResourcesCoursesTeam