Advisory

GHSA-wxhm-2mq7-7697

Also known as: CVE-2026-53598, PYSEC-2026-3538

Summary

Prompty: Arbitrary file read via file reference expansion

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-07-17 19:46 UTC
Modified
2026-07-31 05:15 UTC

Affected packages and fixes

prompty

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.0b2 (ecosystem)

Fixed versions

2.0.0b2

Fix

  • Fixed version 2.0.0b2
    pip install --upgrade prompty==2.0.0b2

@prompty/core

npm · All systems

Affected

  • introduced 0, fixed 2.0.0-beta.2 (semver)

Fixed versions

2.0.0-beta.2

Fix

prompty

crates.io · All systems

Affected

  • introduced 0, fixed 2.0.0-beta.2 (semver)

Fixed versions

2.0.0-beta.2

Fix

  • Fixed version 2.0.0-beta.2
    cargo update -p prompty --precise 2.0.0-beta.2

Prompty.Core

NuGet · All systems

Affected

  • introduced 0, fixed 2.0.0-beta.2 (ecosystem)

Fixed versions

2.0.0-beta.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences