{"id":"CVE-2026-73299","aliases":["CVE-2026-73299","GHSA-w28w-gp39-m4p6"],"related":[],"kind":"vulnerability","state":"published","title":"Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\nThe 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.\n\n## Affected packages\n- npm `@prompty/core` versions `<= 0.1.4`\n- npm `@prompty/core` versions `<= 2.0.0-beta.4`\n\n## Impact\nApplications that render untrusted, community-supplied, cloned, or LLM-generated `.prompty` files with the TypeScript runtime could allow attacker-controlled code execution with the privileges of the Node.js host process.\n\n## Remediation\nUpgrade to `@prompty/core` `2.0.0-beta.5` or later. The patched renderer sanitizes render inputs to own-data-only values, rejects constructor/prototype member traversal, and disallows template function calls. Ordinary interpolation, conditionals, loops, and own nested data properties remain supported.\n\n## Fix details\nThe fix is merged in PR #404 and includes regression coverage for default Nunjucks rendering, explicit renderer usage, unsafe member lookups, and attempted template function calls.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Prompty es un formato de archivo markdown (.prompty) para prompts de LLM. Antes de las versiones 0.1.5 y 2.0.0-beta.5, el renderizador TypeScript Nunjucks evaluaba cuerpos de plantillas .prompty no confiables con acceso irrestricto a miembros de JavaScript. Una plantilla controlada por el atacante podría recorrer propiedades de constructor y prototipo para ejecutar JavaScript en el proceso host de Node.js. Este problema está solucionado en las versiones 0.1.5 y 2.0.0-beta.5.","source":"nvd"}],"published":"2026-07-24T16:23:59.000Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-1336"],"affected":[{"ranges":[{"version":"< 0.1.5","status":"affected"},{"version":">= 2.0.0-alpha.1, < 2.0.0-beta.5","status":"affected"}],"vendor":"microsoft","product":"prompty","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.5"}],"ecosystem":"npm","package":"@prompty/core","purl":"pkg:npm/%40prompty/core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-alpha.1","status":"affected","fixed":"2.0.0-beta.5"}],"ecosystem":"npm","package":"@prompty/core","purl":"pkg:npm/%40prompty/core","source":"ghsa"}],"references":[{"url":"https://github.com/microsoft/prompty/security/advisories/GHSA-w28w-gp39-m4p6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/microsoft/prompty/pull/404","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/microsoft/prompty/pull/405","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/microsoft/prompty/commit/e4a0ebf49e3a78d5d7796c8480bf9a4f0c54d19e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/microsoft/prompty/commit/f5c57c94a0990cca79d095c3daab661b4b1fb89f","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/microsoft/prompty/tree/typescript/2.0.0-beta.5","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/microsoft/prompty/commit/047756f4c8caf91c5868eeb42520c938393277b0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/prompty","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-08-12T18:53:50.277Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73299","url":"https://www.cve.org/CVERecord?id=CVE-2026-73299","licence":"CVE Terms of Use","modified":"2026-08-12T18:54:20.646Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w28w-gp39-m4p6","url":"https://github.com/advisories/GHSA-w28w-gp39-m4p6","licence":"CC-BY-4.0","modified":"2026-08-13T04:11:08.015Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73299","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73299","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.607Z","epss":{"score":0.01335,"percentile":0.71995,"date":"2026-12-01T12:00:22.000Z"}}