Notepad-plus-plus
Notepad++: Arbitrary Code Execution via shortcuts.xml UserCommand Injection
Notepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <Command> tag text content inside <UserDefinedCommands> in shortcuts.xml is read by NppXml::value(aNode) (Parameters.cpp:3658) in the feedUserCmds() function and stored in UserCommand._cmd without any validation. When the user clicks the corresponding entry in the Run menu, NppCommands.cpp:4264 creates a Command object with string2wstring(ucmd.getCmd()) and calls run(), which invokes ShellExecute (RunDlg.cpp:221) with the attacker-controlled string as the executable path. The injected command appears as a normal menu item in the Run menu, making it a viable persistence mechanism. This vulnerability is fixed in 8.9.6.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.9.6.1
Fixed in 8.9.6.1
Mitigation
Upgrade notepad-plus-plus to 8.9.6.1 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.2 suspicious or fake
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| atiilla/Notepad-8.9.6-PoC | 28 May 2026 −29 d | 6 | Fake |
| kavin-jindal/CVE-2026-48800-PoC | 31 May 2026 −27 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.