Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-52886 — Notepad++ CVE-2026-52886 — session.xml backupFilePath starts_with() path traversal (GHSA-rqfm-pw34-r7j6) | Kitploit
Tools/GitHubGitHub/v3s9er/cve-2026-52886
Vulnerability AnalysisExploitationData Exfiltration
GitHubv3s9er/cve-2026-52886

CVE-2026-52886

Notepad++ CVE-2026-52886 — session.xml backupFilePath starts_with() path traversal (GHSA-rqfm-pw34-r7j6)

View Repository
383 months agoNot yet reviewed
Share

Path Traversal: starts_with() Prefix Check Bypass

Notepad++ — Arbitrary File Read via session.xml backupFilePath Traversal

Advisory

  • GHSA: GHSA-rqfm-pw34-r7j6
  • CVE: CVE-2026-52886
  • Severity: Moderate
  • Affected: < v8.9.6.4
  • Patched: v8.9.7
  • Patch Commit: 7e66f36
  • Affected File: PowerEditor/src/Notepad_plus.cpp (session restore — backupFilePath validation)
  • Platform: Windows 11 Pro x64
  • Privilege Required: Standard user (write access to session.xml)
  • Researcher: v3s9er (RAGE)
  • Disclosed: 2026-06-05

Summary

Notepad++ validates the backupFilePath attribute during session restoration using a raw string prefix comparison via std::wstring::starts_with(), without normalizing the path first. A crafted path that begins with the legitimate backup directory prefix but contains ..\ traversal sequences passes the check, yet resolves to an arbitrary location when the OS opens the file — loading the content of any readable file into an editor tab.

Technical Overview

On launch with snapshot (backup) mode enabled, Notepad++ restores the previous session from session.xml. Each entry's backupFilePath is expected to live under the application's backup directory. The integrity gate only checks that the stored path starts with the expected backup directory string. Because the comparison happens on the raw, un-normalized string, an attacker prepends the legitimate prefix and then walks out of the directory with ..\ sequences.

Root Cause

The check tests a textual prefix; the use opens the OS-resolved path. The two disagree once ..\ is present.

OperationSourceBehavior
CHECKRaw backupFilePath stringstarts_with(backupDir) — passes on prefix match
USEOS-resolved path..\ sequences collapse to an arbitrary location

Attack Scenario

Pre-condition: Write access to session.xml, snapshot/backup mode enabled.

Steps:

  1. Overwrite session.xml, injecting a crafted backupFilePath: <backupDir>\..\..\..\..\Users\victim\.ssh\id_rsa
  2. The prefix <backupDir>\ satisfies starts_with(), so validation passes.
  3. Launch Notepad++ (session restoration triggers).
  4. The OS collapses the ..\ sequences; the target file is opened.
  5. The content of the arbitrary file is loaded into an editor tab.

Result: Read-only exfiltration — target file content is visible in the editor, including sensitive files such as SSH keys, environment configuration files, and credential stores.

Impact

  • Type: Arbitrary File Read (Path Traversal)
  • Admin Required: No
  • UAC Prompt: No
  • Exposure: SSH private keys, .env / config files, credential stores — any file readable by the user
  • CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

Proof of Concept

Requirements:

  • Notepad++ v8.9.6.2 portable x64 with backup/snapshot configuration
  • Write access to session.xml
  • A backupFilePath payload: backup directory prefix + ..\ traversal sequences + target file path

Injecting the crafted path and launching the application loads the target file into an editor tab.

Patch Analysis

The fix (commit 7e66f36) performs proper path normalization before validation, so ..\ sequences are collapsed prior to the prefix comparison — the checked path and the used path now agree.

References

  • GHSA-rqfm-pw34-r7j6
  • CVE-2026-52886
  • Commit 7e66f36
  • Notepad++ v8.9.7 release
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    930
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    554
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    354
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    349
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →