CVE-2026-52886: Path Traversal in Notepad++ session.xml Handling
CVE-2026-52886 is a path traversal and path validation bypass vulnerability in Notepad++ session management, affecting versions prior to 8.9.7. The flaw resides in handling of session.xml entries, specifically validation of the backupFilePath attribute using a raw textual prefix check based on starts_with without first normalizing the path. Because traversal sequences are not canonicalized before validation, a crafted path can satisfy the prefix check while still resolving outside the intended directory. When Notepad++ subsequently loads the manipulated session, including on the next launch in snapshot mode, it may open attacker-selected files accessible to the current user.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthorized access to arbitrary files reachable with the privileges of the current user. This can result in disclosure of sensitive local data, including configuration material and other user-accessible files, by causing Notepad++ to load those files into editor tabs. The issue is primarily an information disclosure and unauthorized file access vulnerability rather than direct code execution.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict the ability of untrusted users, processes, or content to modify session.xml or other Notepad++ configuration files. Avoid using untrusted portable installations or workflows where local session files can be tampered with. Limit exposure by ensuring Notepad++ does not process attacker-controlled session state and by protecting user profile and application configuration locations with appropriate filesystem permissions.
Remediation
Patch, then assume compromise.
Upgrade Notepad++ to version 8.9.7 or later, which includes a fix for the session.xml path validation flaw. Remediation requires correcting path handling so that candidate paths are normalized and validated canonically before use, rather than relying on raw string prefix comparisons.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-52886 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-52886 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-52886?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-52886.
- Is there a patch for CVE-2026-52886?
- Upgrade Notepad++ to version 8.9.7 or later, which includes a fix for the session.xml path validation flaw. Remediation requires correcting path handling so that candidate paths are normalized and validated canonically before use, rather than relying on raw string prefix comparisons.
- How severe is CVE-2026-52886?
- CVE-2026-52886 has a CVSS v4 score of 5.1 (Medium) and an EPSS score of 0.17% (3rd percentile) as of Sep 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.