Loading...
Skip to main content

CVE-2026-73299 — Vulnerability in @prompty/core — CVE Details

CRITICAL

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

Published July 24, 2026Updated August 13, 2026Source: osv

Summary

## Summary 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. ## Affected packages - npm `@prompty/core` versions `<= 0.1.4` - npm `@prompty/core` versions `<= 2.0.0-beta.4` ## Impact Applications 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. ## Remediation Upgrade 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. ## Fix details The 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.

Advisory Timeline

  • First published July 24, 2026 (80 days ago).
  • Last revised August 13, 2026 — 19 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @prompty/core to 0.1.5 or later
npm install @prompty/core@0.1.5
npm
Update @prompty/core to 2.0.0-beta.5 or later
npm install @prompty/core@2.0.0-beta.5

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
@prompty/core
npm
All versions0.1.5
@prompty/core
npm
All versions2.0.0-beta.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-73299?
Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2026-73299?
CVE-2026-73299 affects @prompty/core. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-73299 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-w28w-gp39-m4p6

Related CVEs

  • CVE-2026-107722
    CRITICAL

    fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

  • CVE-2026-108261
    CRITICAL

    TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment

  • CVE-2026-53597
    HIGH

    Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader

  • CVE-2026-53598
    HIGH

    Prompty: Arbitrary file read via file reference expansion

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies