Skip to main content

Notepad++ EUVDEUVD-2026-60374

| CVE-2026-52886 MEDIUM
Path Traversal (CWE-22)
2026-08-17 security-advisories@github.com
5.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain write access to victim's Notepad++ profile directory
  2. Delivery
    embed path traversal sequences in backupFilePath within session.xml
  3. Exploit
    victim launches Notepad++
  4. Install
    snapshot-mode restoration reads tampered attribute
  5. C2
    starts_with prefix check bypassed on non-normalized path
  6. Execute
    arbitrary user-readable file loaded into editor tab
  7. Impact
    file 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

notepad-plus-plus < 8.9.7

Affected Packages

euvd notepad_plus_plus fix: 8.9.7

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

Vendor (github) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.0 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 17, 2026 - 21:17 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
widely used Windows text editor, especially among developers and power users
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy