CVE-2026-52885
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.6.4, NppCommands.cpp checks the HMAC of the on-disk shortcuts.xml at the moment a user command fires (Time-of-Check). However, the command payload is taken from the in-memory _userCommands vector, which is populated at application startup and never re-synchronized with the on-disk file (Time-of-Use). Swapping shortcuts.xml between startup and command execution causes the HMAC check to validate a clean file while a malicious command runs. An attacker with write access to shortcuts.xml places a malicious version on disk before launch, then immediately restores the legitimate file. The HMAC check at execution time validates the restored legitimate file (check passes), while the malicious payload executes from memory. This vulnerability is fixed in 8.9.6.4.
Description as published by the source, in English.
Key facts
- Published
- 2026-06-26
- Last modified
- 2026-06-29
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.1 %
higher than 3 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Notepad-plus-plus | Notepad++ | < 8.9.6.4 | Affected |
Weakness type
-
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
References
- https://github.com/notepad-plus-plus/notepad-plus-plus/commit/4f7563c7c7f8ffa0d795ec86a77…
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-qm4c-qg8p…
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-qm4c-qg8p…
Related at Berigo
Articles
-
Notepad++ 8.9.2 hardens the update mechanism after hijack
Same product
2026-02-16
Notepad++ has released version 8.9.2 with double-lock signature checks in its updater, after its update infrastructure was hijacked in 2025.
-
Notepad++ update mechanism abused by state-linked actor
Same product
2026-02-02
The Notepad++ maintainers say updater traffic was redirected to attacker-controlled infrastructure and used against selected users.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.