Skip to main content

CVE-2026-53598 — Vulnerability in Prompty.Core — CVE Details

HIGH

Prompty: Arbitrary file read via file reference expansion

Published July 17, 2026Updated July 31, 2026Source: OSV

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.

Check my packages.lock.json

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 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.

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.

NuGet
Update Prompty.Core to 2.0.0-beta.2 or later
dotnet add package Prompty.Core --version 2.0.0-beta.2
pip
Update prompty to 2.0.0b2 or later
pip install "prompty>=2.0.0b2"
Cargo
Update prompty to 2.0.0-beta.2 or later
cargo update -p prompty --precise 2.0.0-beta.2
npm
Update @prompty/core to 2.0.0-beta.2 or later
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).

PackageFixed In
Prompty.Core NuGet · Affected: 0.2.3-beta2.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 versions2.0.0-beta.2
@prompty/core npm · Affected: All versions2.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.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.29%
EPSS percentile: 70.2

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

GHSA-wxhm-2mq7-7697
PYSEC-2026-3538

Related CVEs

  • CVE-2026-73299
    CRITICAL

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

  • CVE-2026-53597
    HIGH

    Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader

  • CVE-2026-128139
    HIGH

    NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

  • CVE-2026-63184
    HIGH

    Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json