CVE-2026-53598 Prompty: Arbitrary File Read via ${file:path} Reference Expansion
Attackers can read arbitrary local files via path traversal in Prompty prompt files, impacting applications using the library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-53598?
CVE-2026-53598 is a high-severity path traversal vulnerability in microsoft prompty, published on 16 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Prompty is a markdown file format (.prompty) for LLM prompts. Prior to 2.0.0-beta.2, Prompty loaders expanded ${file:...} references in .prompty frontmatter without enforcing that resolved paths stayed within the prompt directory or allowed roots, allowing an attacker-controlled prompt file to read local files through absolute paths, .. traversal, or symlink escapes. This issue is fixed in versions 2.0.0-beta.2.
Which versions are affected by CVE-2026-53598?
9 open source packages ship an affected version, including prompty, Prompty.Core and @prompty/core.
| Package | Affected | Fixed in |
|---|---|---|
prompty PyPI | All versions | 2.0.0b2 |
prompty PyPI | All versions | 2.0.0b2 |
prompty PyPI | All versions | 2.0.0b2 |
prompty crates.io | All versions | 2.0.0-beta.2 |
prompty crates.io | All versions | 2.0.0-beta.2 |
Prompty.Core NuGet | All versions | 2.0.0-beta.2 |
3 more packages
Prompty.Core NuGet | All versions | 2.0.0-beta.2 |
@prompty/core npm | All versions | 2.0.0-beta.2 |
@prompty/core npm | All versions | 2.0.0-beta.2 |
How do I fix CVE-2026-53598?
Upgrade prompty to a fixed version for your release line: 2.0.0b2 or 2.0.0-beta.2.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-53598 being exploited?
There is no known exploitation of CVE-2026-53598 in the wild and no public exploit code.
Sources
Also known as GHSA-wxhm-2mq7-7697, PYSEC-2026-3538.