Description
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.
Published: 2026-08-17
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability allows a local attacker to read any file that a user can read on the same system. By manipulating the backupFilePath attribute within session.xml, the attacker can construct a path with parent‑directory sequences that bypasses the intended backup directory check. When Notepad++ restores a session, the unnormalized path causes the application to open the targeted file in a new editor tab, exposing its contents without any authentication or elevated rights. The weakness is a classic path traversal flaw (CWE‑22) that jeopardizes confidentiality rather than granting code execution or termination of services.

Affected Systems

The flaw is present in all releases of Notepad++ older than version 8.9.7. All users running 8.9.6 and earlier are susceptible. Version 8.9.7 and later include the fix that correctly normalises the path before validating it.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate impact when the flaw is exploited. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting low to moderate exploitation likelihood in the wild. The attack vector requires local access to the user’s session.xml file and the ability to influence its contents, so the risks are confined to environments where the user’s account can modify that file or to persistent malware that writes malicious entries to it.

Generated by OpenCVE AI on August 17, 2026 at 21:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Notepad++ to version 8.9.7 or later to apply the vendor‑supplied fix.
  • If an upgrade is not immediately possible, configure Notepad++ to disable snapshot mode or restrict the backup directory to a location that the user cannot write to, thereby limiting the impact of a malformed backupFilePath.
  • Remove or purge the session.xml file regularly to eliminate any stored malicious entries that could be processed during a session restoration.

Generated by OpenCVE AI on August 17, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Notepad++: session.xml backupFilePath starts_with Bypass
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 5.1, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T20:09:32.188Z

Reserved: 2026-06-08T21:44:27.365Z

Link: CVE-2026-52886

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T20:16:44.077

Modified: 2026-08-17T20:16:44.077

Link: CVE-2026-52886

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T21:45:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')