Vulnerabilities in pkg:nuget/Prompty.Core
PACKAGECVE-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.
pkg:nuget/Prompty.Core
Vulnerability advisories affecting package pkg:nuget/Prompty.Core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wxhm-2mq7-7697 | CVE-2026-53598 | HIGH | Prompty: Arbitrary file read via file reference expansion |
CVE-2026-53598 at a Glance
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).
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.
pip install prompty>=2.0.0b2
npm install @prompty/core@2.0.0-beta.2
Upgrade prompty to 2.0.0-beta.2
Upgrade Prompty.Core to 2.0.0-beta.2
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
CVE-2026-53598 Affected Prompty Versions
4 component(s)| 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?
Which Prompty versions are affected?
What version fixes CVE-2026-53598?
Is prompty affected?
Is @prompty/core affected?
What is the CVSS score of CVE-2026-53598?
What CWE is associated with CVE-2026-53598?
How can I check PyPI dependencies for CVE-2026-53598?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}