---
id: CVE-2026-53598
aliases:
  - GHSA-wxhm-2mq7-7697
title: 'Prompty: Arbitrary file read via file reference expansion'
summary: 'Prompty: Arbitrary file read via file reference expansion'
severity: high
cvss: 7.5
cwe:
  - CWE-22
  - CWE-200
vendor: prompty
product: prompty
ecosystem: pip
affected:
  - prompty <= 2.0.0b1
  - '@prompty/core <= 2.0.0-beta.1'
  - prompty <= 2.0.0-beta.1
  - Prompty.Core <= 2.0.0-beta.1
patched:
  - prompty 2.0.0b2
  - '@prompty/core 2.0.0-beta.2'
  - prompty 2.0.0-beta.2
  - Prompty.Core 2.0.0-beta.2
published: '2026-07-17'
updated: '2026-07-17'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-wxhm-2mq7-7697'
references:
  - url: >-
      https://github.com/microsoft/prompty/security/advisories/GHSA-wxhm-2mq7-7697
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-53598'
  - url: >-
      https://github.com/microsoft/prompty/commit/88ac9948d7d37995edbb2f6d36913436626c39e1
  - url: 'https://github.com/advisories/GHSA-wxhm-2mq7-7697'
tags:
  - ghsa
  - pip
epss: 0.01286
epssPercentile: 0.68871
ingestedAt: '2026-07-17T20:15:43.285Z'
---

## Overview

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

## Affected packages

- `prompty <= 2.0.0b1`
- `@prompty/core <= 2.0.0-beta.1`
- `prompty <= 2.0.0-beta.1`
- `Prompty.Core <= 2.0.0-beta.1`

## Remediation

Upgrade to a patched release:

- `prompty 2.0.0b2`
- `@prompty/core 2.0.0-beta.2`
- `prompty 2.0.0-beta.2`
- `Prompty.Core 2.0.0-beta.2`
