Arbitrary Code Injection Affecting @prompty/core package, versions <0.1.5>=2.0.0-alpha.1 <2.0.0-beta.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.22% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PROMPTYCORE-18912932
  • published18 Aug 2026
  • disclosed12 Aug 2026
  • creditAlex

Introduced: 12 Aug 2026

NewCVE-2026-73299  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @prompty/core to version 0.1.5, 2.0.0-beta.4 or higher.

Overview

@prompty/core is a Prompty core package

Affected versions of this package are vulnerable to Arbitrary Code Injection via the NunjucksRenderer in nunjucks.ts, which passes user-controlled inputs directly to env.renderString without restricting member access or function calls within the Nunjucks template engine. An unauthenticated remote attacker can supply a template payload that traverses prototype properties (e.g., __proto__, constructor, prototype) or invokes arbitrary JavaScript functions through Nunjucks' callWrap mechanism, achieving remote code execution on the server.

CVSS Base Scores

version 4.0
version 3.1