CVE-2026-53598 — Vulnerability in Prompty.Core — CVE Details
Prompty: Arbitrary file read via file reference expansion
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.29%). Schedule for your next planned update.
Does your project use an affected Prompty.Core version?
Paste your packages.lock.json to check it for CVE-2026-53598 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published July 17, 2026 (132 days ago).
- Last revised July 31, 2026 — 13 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Prompty.Core --version 2.0.0-beta.2
pip install "prompty>=2.0.0b2"
cargo update -p prompty --precise 2.0.0-beta.2
npm install @prompty/core@2.0.0-beta.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 4 ecosystems: crates.io (1), npm (1), NuGet (1), PyPI (1).
| Package | Fixed In |
|---|---|
| Prompty.Core NuGet · Affected: 0.2.3-beta | 2.0.0-beta.2 |
| prompty PyPI · Affected: 0.1.1, 0.1.10, 0.1.12, 0.1.13 (+43 more) | 2.0.0b2 |
| prompty crates.io · Affected: All versions | 2.0.0-beta.2 |
| @prompty/core npm · Affected: All versions | 2.0.0-beta.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
Frequently Asked Questions
- What is CVE-2026-53598?
- Prompty: Arbitrary file read via file reference expansion. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-53598?
- CVE-2026-53598 affects Prompty.Core, prompty and @prompty/core. It has a 1.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-53598 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 70.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-73299CRITICAL
Prompty: Server-Side Template Injection to Remote Code Execution in the @prompty/core Nunjucks Renderer
- CVE-2026-53597HIGH
Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader
- CVE-2026-128139HIGH
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion