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

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 (87 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 4 ecosystems: crates.io (1), npm (1), nuget (1), pypi (1).

PackageEcosystemAffectedFixed In
Prompty.Core
nuget
0.2.3-beta2.0.0-beta.2
prompty
pypi
0.1.1, 0.1.10, 0.1.12, 0.1.13 (+43 more)2.0.0b2
prompty
crates.io
All versions2.0.0-beta.2
@prompty/core
npm
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. 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

High exploitability or significant impact. Prioritize remediation within days.

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-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies