Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .prompty file with path traversal reference
-
DeliveryDeliver file to target application via upload or URL parameter
-
ExploitPrompty loader expands ${file:} without path boundary check
-
ExecutionSensitive file content embedded in resolved frontmatter
-
PersistApplication returns or logs expanded content
-
ImpactAttacker extracts sensitive file data from response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two conditions to be satisfied simultaneously: (1) the target application loads a |
| Impact | The NVD CVSS score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) represents the worst-case posture for applications that accept untrusted |
| Exploit ScenarioDerived | An attacker submits a crafted |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Arbitrary file read in Microsoft Prompty's multi-ecosystem runtime libraries (PyPI, npm, Rust, NuGet) exposes any file readable by the host process when an attacker can supply a crafted .prompty file. The ${file:...} reference expansion in .prompty frontmatter performed no path canonicalization or boundary enforcement, allowing absolute paths, .. traversal sequences, and symlink escapes to resolve outside the prompt directory. No public exploit has been identified at time of analysis, but the SSVC framework rates the technique automatable, making this a meaningful risk for any application that loads user-supplied or externally-sourced prompty files.
RemediationAI
Upgrade to the patched version for your ecosystem: PyPI prompty 2.0.0b2, npm @prompty/core 2.0.0-beta.2, crates.io prompty 2.0.0-beta.2, or NuGet Prompty.Core 2.0.0-beta.2 - all delivered in commit 88ac9948d7d37995edbb2f6d36913436626c39e1. The full advisory is at https://github.com/microsoft/prompty/security/advisories/GHSA-wxhm-2mq7-7697. Prior to patching, restrict the application to loading .prompty files only from trusted, internally-controlled directories; never accept prompt file paths or bundles derived from user input. If the application needs to access shared prompt assets outside the prompt directory after upgrading, use the new AllowedFileRoots option in PromptyLoadOptions (C
example shown in commit diff) - treat this option as a privileged configuration value and never populate it from user-supplied data, as doing so would reintroduce the vulnerability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in cargo, npm, nuget and 2 more
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Prompty is a cross-ecosystem SDK for defining LLM prompts in YAML-frontmatter markdown files (.prompty), maintained by Microsoft at github.com/microsoft/prompty. Runtimes ship for Python (PyPI prompty), JavaScript/TypeScript (npm @prompty/core), Rust (crates.io prompty), and .NET (NuGet Prompty.Core). The ${file:path} interpolation syntax embeds external file content into prompt frontmatter fields at load time. The vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) arises because the loader resolved paths relative to the prompt directory but neither canonicalized the result nor validated it against any allowed-root prefix before performing the filesystem read. This allowed callers to specify absolute paths such as ${file:/etc/shadow}, traversal sequences such as ${file:../../../secret.txt}, or symlinks pointing outside the prompt tree. The fix in commit 88ac9948d7d37995edbb2f6d36913436626c39e1 canonicalizes all file-reference targets and allowed roots, rejects targets outside the prompt file's directory by default, and introduces a new AllowedFileRoots option in PromptyLoadOptions for applications that legitimately require access to shared prompt assets in other directories.
Know when Prompty gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AV:N appropriate as prompty files can be delivered remotely, but AC:H reflects that exploitation requires both attacker-controlled file loading and content exposure to the attacker - deployment-dependent conditions not universally met.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Prompty is a markdown file format (.prompty) for LLM prompts. Prior to 2.0.0-beta.2, Prompty loaders expanded ${file:...} references in .prompty frontmatter without enforcing that resolved paths stayed within the prompt directory or allowed roots, allowing an attacker-controlled prompt file to read local files through absolute paths, .. traversal, or symlink escapes. This issue is fixed in versions 2.0.0-beta.2.
Executive ViewAI
Microsoft Prompty, a runtime library distributed across Python, Node.js, Rust, and .NET, contains a path traversal vulnerability allowing attackers to read arbitrary files accessible to the application. Organizations using Prompty to load external or user-supplied prompt configuration files risk exposure of credentials, source code, and system settings. The vulnerability's broad ecosystem reach (PyPI, npm, crates.io, NuGet) means impact extends across development stacks simultaneously.
Apply vendor patch. Pending patching completion, restrict write access to .prompty files, whitelist trusted configuration sources only, and implement file-access auditing to detect unusual read patterns on systems running Prompty.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Server-side template injection leading to remote code execution in Microsoft's @prompty/core npm package (TypeScript run
Arbitrary JavaScript execution in Microsoft's @prompty/core TypeScript loader (2.0.0-alpha.1 through 2.0.0-beta.2) allow
EUVD-2026-44940
GHSA-wxhm-2mq7-7697
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB