Notepad++ patched arbitrary code execution flaws in `config.xml` and `shortcuts.xml`
Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen May 27, 2026

Notepad++ released fixes for two arbitrary code execution issues that allowed attacker-controlled configuration data to trigger program execution through trusted application features. One flaw, tracked as GHSA-3x3f-3j39-pj3v and affecting versions through v8.9.6, let malicious content placed in shortcuts.xml create legitimate-looking entries under the Run menu; when clicked, those entries were passed to ShellExecute, enabling execution of arbitrary programs and potential persistence. The advisory said the attack could be carried out by modifying shortcuts.xml directly or by steering Notepad++ to a malicious settings directory via a crafted .lnk shortcut.
The project also fixed a separate issue in config.xml, tracked as CVE-2026-48778 and GHSA-7hm3-wp5q-ccv9, by removing the configurable commandLineInterpreter setting that could be abused for unsafe command execution and replacing it with trusted system paths for launching cmd and PowerShell. Additional hardening for the shortcuts.xml path was shipped in the v8.9.6.x line, including absolute-path enforcement, SearchPathW resolution for bare executable names, blocking invalid targets, and warning dialogs for insecure http URLs and risky executable types from untrusted locations; the changes also added a new Open Containing Folder in PowerShell feature and related File Browser menu entries.


