CVE-2026-86054: Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path

Published Sep 22, 2026
·
Updated

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[MAXPATH] with unbounded wcscpy and appends SESSIONBACKUPEXT 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 Software

1 affected component
Notepad++ Notepad++<8.9.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Notepad++ to a version that resolves this vulnerability.

    Fixed in 8.9.8

Event History

Sep 22, 2026
CVE Published
via MITRE·05:12 PM
Data Sourced
via MITRE·05:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Notepad++ installations earlier than 8.9.8 are affected when they are launched with a sufficiently long directory supplied through the -settingsDir= option.

2

What does an attacker need to exploit it?

An attacker needs to cause Notepad++ to use an overlong -settingsDir= path and have the application save its session. The reported protected release behavior is stack-canary termination, resulting in denial of service.

3

Is there a fixed version?

Yes. The issue is fixed in Notepad++ version 8.9.8.

4

How can I determine whether an installation may be affected?

Check whether the installed Notepad++ version is earlier than 8.9.8 and whether it is launched with the -settingsDir= option using a sufficiently long path. The failure occurs when Notepad++ saves the session.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203