Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain write access to victim's Notepad++ profile directory
-
Deliveryembed path traversal sequences in backupFilePath within session.xml
-
Exploitvictim launches Notepad++
-
Installsnapshot-mode restoration reads tampered attribute
-
C2starts_with prefix check bypassed on non-normalized path
-
Executearbitrary user-readable file loaded into editor tab
-
Impactfile contents exposed to attacker
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 that the attacker can write to or replace the session.xml file in the victim's Notepad++ profile directory (%APPDATA%\Notepad++\session.xml) before the victim launches the application. The victim must then open Notepad++ and allow snapshot-mode session restoration to process the tampered file - the CVSS vector UI:P confirms user interaction is required. Only files readable by the currently logged-in Windows user account can be exfiltrated; no privilege escalation is possible (VI:N, VA:N). The vulnerability does not affect Notepad++ instances launched with no pre-existing session.xml or with attacker-uncontrolled session state, and it does not permit writing or modifying files on the target system. |
| Impact | The CVSS 4.0 base score of 5.1 (AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N) accurately characterizes a moderate-severity, locally-constrained information-disclosure issue. The attack vector is local and requires low privileges plus explicit user interaction - the victim must launch Notepad++ with a tampered session.xml present - which substantially limits real-world exploitability. There is no CISA KEV listing and no public proof-of-concept, consistent with low exploitation urgency; EPSS data was not provided in the input. The high confidentiality impact (VC:H) reflects that any file readable by the logged-in Windows account - including credentials, SSH keys, or configuration files - could be exposed, but this impact is strictly bounded to the current user's readable file space. A practical attack requires the ability to write to the victim's Notepad++ profile directory, which typically implies a level of pre-existing local access that offers easier alternative paths; even a mid-sized municipal IT team in inowroclaw should treat this as a routine patch-cycle item rather than an emergency response, prioritizing the upgrade to 8.9.7 without needing to invoke incident procedures. No conflicting signals between the CVSS vector and the description were identified. |
| Exploit ScenarioDerived | An attacker with write access to the victim's Notepad++ profile directory - obtained via a separate local vulnerability, a shared or multi-user machine, or social engineering - plants a crafted session.xml containing a backupFilePath value such as C:\Users\victim\AppData\Roaming\Notepad++\backup\..\..\..\..\Users\victim\Documents\credentials.txt. When the victim next launches Notepad++ and snapshot-mode restoration processes the file, the dot-dot sequence bypasses the starts_with prefix check and the target file is silently loaded into an editor tab, exposing its full contents. No public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Path traversal in Notepad++ before version 8.9.7 enables local attackers with write access to the user's profile directory to read arbitrary user-readable files outside the designated backup folder by poisoning session.xml. The backupFilePath attribute is validated with std::wstring::starts_with against the expected backup directory prefix but without prior path normalization, allowing dot-dot sequences to bypass the check during snapshot-mode session restoration and load an out-of-bounds file into an editor tab. No public exploit code or active exploitation has been identified at the time of analysis; the vendor released a confirmed fix in version 8.9.7.
RemediationAI
Upgrade Notepad++ to version 8.9.7 or later, confirmed available at https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7. This release addresses the flaw by invoking PathCchCanonicalize on the raw backupFilePath value before the backup directory prefix comparison, preventing dot-dot traversal. No official workaround for earlier versions has been published. As a compensating control where immediate upgrade is not feasible, administrators can restrict write permissions on the Notepad++ profile directory (%APPDATA%\Notepad++) to prevent unauthorized modification of session.xml; note that this trade-off may interfere with normal session auto-save behavior. Users should also avoid restoring sessions from untrusted or externally-supplied session.xml files until the upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Notepad++ persists editor session state - including paths to backup copies of unsaved documents - in a session.xml file stored under the user profile (typically %APPDATA%\Notepad++\session.xml). During snapshot-mode session restoration, Parameters.cpp reads the backupFilePath attribute and validates it using std::wstring::starts_with against the expected backup directory path (e.g., C:\Users\<user>\AppData\Roaming\Notepad++\backup\). Because the comparison is performed on the raw, non-normalized string, an attacker can craft a value such as C:\Users\<user>\AppData\Roaming\Notepad++\backup\..\..\..\sensitive.txt that satisfies the prefix test while resolving outside the backup directory - a textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) instance. The fix, visible in commit 7e66f36db666a13b09fb5c31232ab2ca1c2ebccc, introduces the Windows PathCchCanonicalize API (linked via Pathcch.lib) to resolve the raw path to its canonical form before the prefix comparison, collapsing any dot-dot sequences and preventing traversal.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Local write access to session.xml and user interaction to launch Notepad++ required; confidentiality high since arbitrary user-readable files can be exposed, but no integrity or availability impact applies.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Notepad++ is a free and open-source source code editor. Prior to 8.9.7, Notepad++ validates the backupFilePath attribute from session.xml with std::wstring::starts_with against the expected backup directory without path normalization, allowing parent-directory sequences during snapshot-mode restoration to read an arbitrary user-readable file outside the backup directory into an editor tab. This issue is fixed in version 8.9.7.
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.
EUVD-2026-60374
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB