Notepad++: shortcuts.xml Macro HMAC Bypass Enables Conditional Elevated Command Execution
cve-program · CVE-2026-71858
PublishedNotepad++ is a free and open-source source code editor. Prior to 8.9.7, macros loaded from an attacker-controlled shortcuts.xml bypass the HMAC validation applied to UserDefinedCommands and can invoke Scintilla actions and the internal Open in Default Viewer command in an elevated Notepad++ process, allowing protected file modification and conditional elevated command execution when a local attacker influences settingsDir and a user triggers the macro. This issue is fixed in version 8.9.7.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-71858 · CVE overview and exploitation status
cve-program · CVE-2026-71858
Related changes
Linked by CVE identifierNo related changes are available here.