CVE-2026-85288

Notepad++: Shortcuts.xml macro HMAC bypass still reachable via the "Run a Macro Multiple Times" dialog

Published Sep 22, 2026 CVSS 3.1 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ incompletely enforces shortcuts.xml HMAC validation because WM_MACRODLGRUNMACRO, the Run a Macro Multiple Times entry point, calls macroPlayback() without the validation used by command(). A tampered shortcuts.xml macro that is blocked through the Macro menu or a shortcut key can therefore execute through the multi-run dialog and invoke internal Notepad++ commands, including commands that launch external programs, in the current user context. This issue is fixed in version 8.9.8.

Analysis

AI-generated

Technical impact

The flaw arises from incomplete HMAC validation on shortcuts.xml files when triggered through the Run a Macro Multiple Times dialog. A crafted macro that would normally be rejected by other menu paths can bypass the check, invoking internal commands that can launch external applications. This bypass enables an attacker to execute arbitrary code in the current user context.

Affected Systems

Notepad++ before version 8.9.8. The vulnerability exists in all builds released earlier than the patch in v8.9.8.

Risk and Exploitability

The CVSS score of 6.7 indicates moderate severity. No EPSS score is available, and the flaw is not listed in the CISA KEV catalog, suggesting it has not yet been actively exploited. Attackers would need local access to the system to alter shortcuts.xml, so the exposure is limited to machines that have the editor installed and are not protected by strict file permissions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official Notepad++ 8.9.8 or newer update, which restores full HMAC validation and fixes the CWE-345, CWE-693, and CWE-78 weaknesses.
  • If an upgrade is not immediately possible, disable write access to shortcuts.xml and block the Run a Macro Multiple Times dialog to prevent exploitation of the HMAC validation bypass (CWE-345) and command execution vulnerability (CWE-78).
  • Implement monitoring or policy to restrict external program execution from within Notepad++ to mitigate the risk of OS command injection (CWE-78) and unintended resource usage (CWE-693).

Generated by OpenCVE AI on September 22, 2026 at 19:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Notepad-plus-plus
Notepad-plus-plus notepad++
Vendors & Products Notepad-plus-plus
Notepad-plus-plus notepad++
Type Values Removed Values Added
Description Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ incompletely enforces shortcuts.xml HMAC validation because WM_MACRODLGRUNMACRO, the Run a Macro Multiple Times entry point, calls macroPlayback() without the validation used by command(). A tampered shortcuts.xml macro that is blocked through the Macro menu or a shortcut key can therefore execute through the multi-run dialog and invoke internal Notepad++ commands, including commands that launch external programs, in the current user context. This issue is fixed in version 8.9.8.
Title Notepad++: Shortcuts.xml macro HMAC bypass still reachable via the "Run a Macro Multiple Times" dialog
Weaknesses CWE-345
CWE-693
CWE-78
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-693

    Protection Mechanism Failure

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 25, 2026, 11:48 PM
Reserved
Sep 3, 2026, 4:37 PM
Status
Awaiting Analysis
Published
Sep 22, 2026, 6:17 PM
Modified
Sep 26, 2026, 12:16 AM