CVE-2026-53598: Prompty Arbitrary File Read Vulnerability

HIGH
Advisory Identifier: GHSA-wxhm-2mq7-7697
CVSS 7.5
CWE-200 CWE-22
Published
Advisory Summary

CVE-2026-53598 is a HIGH (CVSS 7.5) arbitrary file read vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Prompty libraries in the PyPI ecosystem. The issue involves arbitrary file read via file reference expansion. Remediation is available by upgrading affected packages to version 2.0.0b2, 2.0.0-beta.2.

CVE-2026-53598 at a Glance

CVE Identifier CVE-2026-53598
GHSA Identifier GHSA-wxhm-2mq7-7697
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Prompty
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-53598

To remediate this vulnerability, upgrade all affected Prompty dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

prompty fixed: 2.0.0b2
pip install prompty>=2.0.0b2
@prompty/core fixed: 2.0.0-beta.2
npm install @prompty/core@2.0.0-beta.2
prompty fixed: 2.0.0-beta.2
Upgrade prompty to 2.0.0-beta.2
Prompty.Core fixed: 2.0.0-beta.2
Upgrade Prompty.Core to 2.0.0-beta.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show prompty

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-53598, inspect your installed packages using pip:

pip show prompty

Analyze the terminal output to locate any version of Prompty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0b2), your application is affected.

Note: The pip show prompty command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Prompty, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-53598 Affected Prompty Versions

4 component(s)
Fixed Versions:
2.0.0b22.0.0-beta.2
Product / Package Ecosystem Affected Versions Fixed Version
prompty
PyPI
< 2.0.0b2
2.0.0b2
@prompty/core
npm
< 2.0.0-beta.2
2.0.0-beta.2
prompty
crates.io
< 2.0.0-beta.2
2.0.0-beta.2
Prompty.Core
NuGet
< 2.0.0-beta.2
2.0.0-beta.2

References

Frequently Asked Questions

What is CVE-2026-53598?
CVE-2026-53598 is a security vulnerability in Prompty involving Arbitrary file read via file reference expansion under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Prompty versions are affected?
Affected versions include releases prior to 2.0.0b2, 2.0.0-beta.2 across affected packages: prompty, @prompty/core, Prompty.Core.
What version fixes CVE-2026-53598?
Upgrading to 2.0.0b2, 2.0.0-beta.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prompty affected?
Yes, prompty is affected in releases prior to 2.0.0b2, 2.0.0-beta.2. Upgrade your dependency to 2.0.0b2, 2.0.0-beta.2 or later.
Is @prompty/core affected?
Yes, @prompty/core is affected in releases prior to 2.0.0-beta.2. Upgrade your dependency to 2.0.0-beta.2 or later.
What is the CVSS score of CVE-2026-53598?
CVE-2026-53598 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-53598?
CVE-2026-53598 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2026-53598?
Run the dependency tree command: 'pip show prompty'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wxhm-2mq7-7697",
  "modified" : "2026-07-17T19:46:05Z",
  "published" : "2026-07-17T19:46:05Z",
  "aliases" : [ "CVE-2026-53598" ],
  "summary" : "Prompty: Arbitrary file read via file reference expansion",
  "details" : "## Summary\nPrompty 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.\n\n## Affected packages\n- PyPI `prompty` versions `<= 2.0.0b1`; fixed in `2.0.0b2`\n- npm `@prompty/core` versions `<= 2.0.0-beta.1`; fixed in `2.0.0-beta.2`\n- crates.io `prompty` versions `<= 2.0.0-beta.1`; fixed in `2.0.0-beta.2`\n- NuGet `Prompty.Core` versions `<= 2.0.0-beta.1`; fixed in `2.0.0-beta.2`\n\n## Impact\nApplications 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.\n\n## Remediation\nUpgrade 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.\n\n## Fix details\nThe 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" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "prompty"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0b2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0b1"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@prompty/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-beta.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0-beta.1"
    }
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "prompty"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-beta.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0-beta.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Prompty.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-beta.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0-beta.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/prompty/security/advisories/GHSA-wxhm-2mq7-7697"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-53598"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/prompty/commit/88ac9948d7d37995edbb2f6d36913436626c39e1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/prompty"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-17T19:46:05Z",
    "nvd_published_at" : "2026-07-16T16:19:12Z"
  }
}