Prior to 8.9.8, Notepad++ contains a stack buffer overflow in NppParameters::writeSession in PowerEditor/src/Parameters.cpp because it copies a session path derived from -settingsDir= into backupPath…
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- 0.23%
- Published
- Sep 22, 2026
- In the news
- Not yet
What to do
A serious buffer overflow that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Notepad-plus-plus
- < 8.9.8
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ contains a stack buffer overflow in NppParameters::writeSession in PowerEditor/src/Parameters.cpp because it copies a session path derived from -settingsDir= into backupPathName[MAX_PATH] with unbounded wcscpy and appends SESSION_BACKUP_EXT with unbounded wcscat. A sufficiently long settings directory causes the backup suffix to exceed the fixed stack buffer when Notepad++ saves the session, and the protected release build terminates through its stack canary, causing denial of service. This issue is fixed in version 8.9.8.
Affected products
Get alerts for these →No product list yet. It usually appears within a few days of publication.
Timeline 1
Latest change: CVE-2026-86054 published (CVSS 7.8) (Sep 22, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Tue, Sep 22, 2026
- CVECVE-2026-86054 published (CVSS 7.8)CVE Program · 18:17 UTC
References 5
- github.com /notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf
- github.com /notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8
- github.com /notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx
- notepad-plus-plus.org /news/v898-released
- github.com /notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx