Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @prompty/core
  4. ›
  5. GHSA-w28w-gp39-m4p6

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

July 24, 2026

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.

References

  • github.com/advisories/GHSA-w28w-gp39-m4p6
  • github.com/microsoft/prompty/commit/047756f4c8caf91c5868eeb42520c938393277b0
  • github.com/microsoft/prompty/pull/404
  • github.com/microsoft/prompty/security/advisories/GHSA-w28w-gp39-m4p6

Code Behaviors & Features

Detect and mitigate GHSA-w28w-gp39-m4p6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.1.5, all versions starting from 2.0.0-alpha.1 before 2.0.0-beta.5

Fixed versions

  • 0.1.5
  • 2.0.0-beta.5

Solution

Upgrade to versions 0.1.5, 2.0.0-beta.5 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/@prompty/core/GHSA-w28w-gp39-m4p6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.