# CVE-2026-52884: Notepad++ path traversal and security bypass in shortcuts command validation

Source: https://junglewise.ai/threats/cve-2026-52884-notepad-path-traversal-and-security-bypass-in-shortcuts-command  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-26. Updated: 2026-06-26  
License: CC BY 4.0 with a link back

CVE-2026-52884 · Severity: high · CVSS 7.8 · Published 2026-06-26

Notepad++ is a popular open-source text and code editor. A security flaw in how the application validates custom commands allows an attacker to bypass safety warnings and execute malicious programs on a user's computer. If a user is tricked into loading a compromised configuration file or clicking a malicious shortcut, an attacker could gain full control over the system, leading to data theft or malware installation.

## Quick answers

**Is CVE-2026-52884 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-52884 being exploited in the wild.

**How severe is CVE-2026-52884?** High severity, with a CVSS score of 7.8, published 26 June 2026.

**Which products and versions are affected?** Notepad++ Notepad++ 8.9.6.1.

**Is there a fix for CVE-2026-52884?** A patch was published on 2026-05-30: HMAC verification and path validation fixes committed to repository. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-52884 attacked?** It is attacked with local access, in a network appliance.

**Am I affected by CVE-2026-52884?** Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in Notepad++ v8.9.6.1 due to the 'isInTrustedDirectory()' function failing to canonicalize file paths before validation. The function uses a prefix-based check (PathIsPrefix) to ensure commands are executed from trusted directories like C:\Windows\System32; however, an attacker can use '..\..\' sequences to point to an untrusted location while maintaining the trusted prefix. Additionally, the application lacks restrictions on using trusted binaries (like cmd.exe or powershell.exe) as launchers for arbitrary malicious arguments. An attacker can exploit this by modifying the local 'shortcuts.xml' or using the '-settingsDir' command-line argument to point to a malicious configuration. The issue is fixed in version 8.9.6.2 by implementing HMAC integrity verification for configuration files and proper path canonicalization.

## Affected products

- Notepad++ Notepad++ 8.9.6.1

## Timeline

- 2026-05-30: patched: HMAC verification and path validation fixes committed to repository.
- 2026-06-26: advisory: CVE-2026-52884 published.

## References

- [https://github.com/notepad-plus-plus/notepad-plus-plus/commit/ea1508855e9c4528f6198ce9d345f13cb759ebf4](https://github.com/notepad-plus-plus/notepad-plus-plus/commit/ea1508855e9c4528f6198ce9d345f13cb759ebf4)
- [https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-p58x-r3c9-x9p6](https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-p58x-r3c9-x9p6)
