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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-345",
"CWE-693",
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71858.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "8.9.7"
}
],
"source": [
"AFFECTED_FIELD",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71858.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "49942076548380924762753877749129507128",
"length": 110135
},
"id": "CVE-2026-71858-4a24138c",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/NppCommands.cpp",
"function": "Notepad_plus::command"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "321789678466323583525587903832696399039",
"length": 2313
},
"id": "CVE-2026-71858-77046d11",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/6634650414ff91220a4c353b7fe5ad741af0f9f9",
"target": {
"file": "PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp",
"function": "AboutDlg::run_dlgProc"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"139089297887858644289209476980466772993",
"250857080427646452470287258323955662946",
"65991352124628282324926134485291820432",
"53451456506362686175839233743829055682",
"54893816238195879930137616139510839112",
"79614935881117785974879164879860369866",
"201895864261725949768664780593566980649",
"32696051964743732661532932094278168981",
"37678984705777314982402883383370559393",
"79759088793830988957209287623400323458",
"284634791868772090555066749928411964901",
"107134712508512424322726627094753006595",
"149958085203829829537948826968594339565",
"270627837371329124619623996580719247022",
"233174424595622272769612389992540838544",
"285755929853851609281304063920929934177",
"27902059849899684271991503064712354387",
"6899353537998301858008315755046754729",
"33248177323274522877941232529320293483",
"47826014711076019985046601038193880736",
"133171246362749984511306027434017102925",
"200243414333871340897471968255267120124"
],
"threshold": 0.9
},
"id": "CVE-2026-71858-81106347",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/NppCommands.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "70480583224396830938289934235782209821",
"length": 22211
},
"id": "CVE-2026-71858-95e589e4",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/Notepad_plus.cpp",
"function": "Notepad_plus::init"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "38361515103473290676855705685232232425",
"length": 90504
},
"id": "CVE-2026-71858-9defc72e",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/NppBigSwitch.cpp",
"function": "Notepad_plus::process"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"6034042945866451507432798700201493950",
"92747018934665569025977167139259065195",
"174198081936750792955863059568650173944",
"22504570449403026531170053989040171946"
],
"threshold": 0.9
},
"id": "CVE-2026-71858-a50aebd3",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/NppBigSwitch.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"73934179812655448165055737310699482624",
"165596075505432413455088505965299296812",
"15697846664367097651332048867224774793",
"327363084166932039838311470772824169691",
"27658911648692079515982892510481891031"
],
"threshold": 0.9
},
"id": "CVE-2026-71858-de8dc4ca",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/6634650414ff91220a4c353b7fe5ad741af0f9f9",
"target": {
"file": "PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"6034042945866451507432798700201493950",
"334353779386401870174063888495694561794",
"326625148741171092391788974846883019072",
"336631628258075612844746682261314719098"
],
"threshold": 0.9
},
"id": "CVE-2026-71858-ed0a8dc7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb",
"target": {
"file": "PowerEditor/src/Notepad_plus.cpp"
}
}
]
"2026-09-11T08:36:46Z"