High

Prompty: Arbitrary file read via file reference expansion

  • Disclosed: 17.07.2026
  • Updated: 11.10.2026 14:18

Summary

Prompty loaders expanded ${file:...} references in .prompty frontmatter without enforcing that the resolved path stayed within an authorized directory. An attacker-controlled prompt file could use path traversal or an absolute path to cause the host application to read files accessible to the process.

Affected packages

  • PyPI prompty versions <= 2.0.0b1; fixed in 2.0.0b2
  • npm @prompty/core versions <= 2.0.0-beta.1; fixed in 2.0.0-beta.2
  • crates.io prompty versions <= 2.0.0-beta.1; fixed in 2.0.0-beta.2
  • NuGet Prompty.Core versions <= 2.0.0-beta.1; fixed in 2.0.0-beta.2

Impact

Applications that load untrusted .prompty files, user-provided prompt paths, or prompt bundles from less-trusted locations could disclose local files available to the application process when expanded values are logged, returned, or otherwise exposed.

Remediation

Upgrade to the fixed runtime version for your ecosystem. The fix makes file references secure by default: ${file:...} may only resolve within the directory tree containing the .prompty file. Host applications that need shared prompt assets outside that tree must explicitly provide allowed file roots through runtime load options. Absolute paths, .. traversal, and symlink escapes outside allowed roots are rejected.

Fix details

The patched runtimes canonicalize file-reference targets and allowed roots before reading referenced files, reject targets outside the prompt directory by default, and add regression coverage for traversal, absolute paths, explicit allowlists, and symlink escapes. The release commit is 88ac9948d7d37995edbb2f6d36913436626c39e1.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @prompty/core < 2.0.0-beta.2 2.0.0-beta.2
.NET (NuGet) Prompty.Core < 2.0.0-beta.2 2.0.0-beta.2
Python (PyPI) prompty < 2.0.0b2 2.0.0b2

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-200, CWE-22
Platform
npm, .NET (NuGet), Python (PyPI)
Package
@prompty/core, Prompty.Core, prompty
Disclosed
17.07.2026
Updated
11.10.2026 14:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wxhm-2mq7-7697 - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-3538 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: @prompty/core

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
07.2026 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 2

Disclosures per year

  1. 2026: 3
  1. Critical · 10.0 CVE-2026-73299 < 0.1.5, >= 2.0.0-alpha.1, < 2.0.0-beta.5 0.1.5, 2.0.0-beta.5
  2. High CVE-2026-53597 >= 2.0.0-alpha.1, < 2.0.0-beta.3 2.0.0-beta.3
  3. Prompty: Arbitrary file read via file reference expansion this entry
    High · 7.5 CVE-2026-53598 < 2.0.0-beta.2 2.0.0-beta.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.