Prompty: Arbitrary file read via file reference expansion
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
promptyversions<= 2.0.0b1; fixed in2.0.0b2 - npm
@prompty/coreversions<= 2.0.0-beta.1; fixed in2.0.0-beta.2 - crates.io
promptyversions<= 2.0.0-beta.1; fixed in2.0.0-beta.2 - NuGet
Prompty.Coreversions<= 2.0.0-beta.1; fixed in2.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.
| Platform | Package | Vulnerable versions | Fixed 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
- https://github.com/microsoft/prompty/security/advisories/GHSA-wxhm-2mq7-7697
- https://nvd.nist.gov/vuln/detail/CVE-2026-53598
- https://github.com/microsoft/prompty/commit/88ac9948d7d37995edbb2f6d36913436626c39e1
- https://github.com/microsoft/prompty
- https://pypi.org/project/prompty
- https://github.com/advisories/GHSA-wxhm-2mq7-7697
- 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
- 2026: 3
-
Prompty: Arbitrary file read via file reference expansion this entry
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.