Description
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.
Severity (CVSS)
| Base score | 5.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-78 — CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-345 — CWE-345: Insufficient Verification of Data Authenticity
- CWE-693 — CWE-693: Protection Mechanism Failure
Affected products
| Vendor | Product | Versions |
|---|---|---|
| notepad-plus-plus | notepad-plus-plus | < 8.9.7 |
References
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-f4rj-vqq4-wvg4 (x_refsource_CONFIRM)
- https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb (x_refsource_MISC)
- https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7 (x_refsource_MISC)
Generated from the official CVE List on 18 Aug 2026 07:05 UTC.