CVE-2026-52886: Notepad++: session.xml backupFilePath starts_with Bypass
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::startswith 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Notepad++to a version that resolves this vulnerability.Fixed in 8.9.7
Event History
Frequently Asked Questions
What is the severity of CVE-2026-52886?
CVE-2026-52886 has a risk score of 26, indicating a high level of severity.
How do I fix CVE-2026-52886?
To resolve CVE-2026-52886, update Notepad++ to version 8.9.7 or later.
What does CVE-2026-52886 affect?
CVE-2026-52886 affects Notepad++ versions prior to 8.9.7.
What is the nature of the vulnerability in CVE-2026-52886?
CVE-2026-52886 is a path traversal vulnerability due to improper validation of the backupFilePath attribute.
Can CVE-2026-52886 lead to security risks?
Yes, CVE-2026-52886 can allow attackers to access files outside of the intended directory structure.