CVE-2026-71858: Notepad++: shortcuts.xml Macro HMAC Bypass Enables Conditional Elevated Command Execution
Notepad++ 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Notepad++to a version that resolves this vulnerability.Fixed in 8.9.7
Event History
Frequently Asked Questions
What is the severity of CVE-2026-71858?
The severity of CVE-2026-71858 is rated at risk level 48.
How do I fix CVE-2026-71858?
To fix CVE-2026-71858, upgrade Notepad++ to version 8.9.7 or later.
What type of vulnerability is CVE-2026-71858?
CVE-2026-71858 is classified as an OS Command Injection vulnerability.
What impact does CVE-2026-71858 have on Notepad++?
CVE-2026-71858 allows an attacker to bypass HMAC validation and execute commands conditionally in an elevated context.
What is the affected software for CVE-2026-71858?
CVE-2026-71858 affects Notepad++ versions prior to 8.9.7.