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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-121"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/86xxx/CVE-2026-86054.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "8.9.8"
}
],
"source": [
"AFFECTED_FIELD",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-86054.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"169247741825144624397136188255710522833",
"50731968414209058442502004713777493169",
"67552166248832970620335487999155388133",
"180244811389147017096989761483559355784",
"65253073140970142388915739552492156679",
"151027174967116092706683563360107255966",
"70225067072857101676133997820036074314",
"255049643374874331213349666144399461309",
"38136074712481667624842709037354577511",
"328958860471478512977853027603915372828",
"16288141341316623331258927018528679518",
"223564522032782241237306493797029526086",
"76914679914538767800483762583720520844",
"112169958922795484295213951280942393151",
"91074491918983620300922947778724979227",
"333977570440272383146501816484296782007",
"332107971182812462561610019347429323686",
"158865921636288670345205618624457417954"
],
"threshold": 0.9
},
"id": "CVE-2026-86054-38f51f42",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf",
"target": {
"file": "PowerEditor/src/Parameters.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "296510864734399106219181515366821524363",
"length": 5776
},
"id": "CVE-2026-86054-99c089ca",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf",
"target": {
"file": "PowerEditor/src/Parameters.cpp",
"function": "NppParameters::writeSession"
}
}
]
"2026-09-25T08:24:15Z"