{"id":"CVE-2026-71858","summary":"Notepad++: shortcuts.xml Macro HMAC Bypass Enables Conditional Elevated Command Execution","details":"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.","aliases":["GHSA-f4rj-vqq4-wvg4"],"modified":"2026-09-11T08:36:46.782511Z","published":"2026-08-17T20:08:21.140Z","database_specific":{"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"},"references":[{"type":"WEB","url":"https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71858.json"},{"type":"ADVISORY","url":"https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-f4rj-vqq4-wvg4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71858"},{"type":"FIX","url":"https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/notepad-plus-plus/notepad-plus-plus","events":[{"introduced":"0"},{"fixed":"7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb"},{"fixed":"6634650414ff91220a4c353b7fe5ad741af0f9f9"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"8.9.7"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v8.9.6.4","v8.9.6.2","v8.9.6.1","v8.9.6","v8.9.5","v8.9.4","v8.9.3","v8.9.2","v8.9.1","v8.9","v8.8.9","v8.8.8","v8.8.7","v8.8.6","v8.8.5","v8.8.4","v8.8.3","v8.8.2","v8.8.1","v8.8","v8.7.9","v8.7.8","v8.7.7","v8.7.6","v8.7.5","v8.7.4","v8.7.3","v8.7.2","v8.7.1","v8.7","v8.6.9","v8.6.8","v8.6.7","v8.6.6","v8.6.5","v8.6.4","v8.6.3","v8.6.2","v8.6.1","v8.6","v8.5.8","v8.5.7","v8.5.6","v8.5.5","v8.5.4","v8.5.3","v8.5.2","v8.5.1","v8.5","v8.4.9","v8.4.8","v8.4.7","v8.4.6","v8.4.5","v8.4.4","v8.4.3","v8.4.2","v8.4.1","v8.4","v8.3.3","v8.3.2","v8.3.1","v8.3","v8.2.1","v8.2","v8.1.9.3","v8.1.9.2","v8.1.9.1","v8.1.9","v8.1.8","v8.1.7","v8.1.6","v8.1.5","v8.1.4","v8.1.3","v8.1.2","v8.1.1","v8.1","v8","v7.9.5","v7.9.4","v7.9.3","v7.9.2","v7.9.1","v7.9","v7.8.9","v7.8.8","v7.8.7","v7.8.6","v7.8.5","v7.8.4","v7.8.3","v7.8.2","v7.8.1","v7.8","v7.7.1","v7.7","v7.6.6","v7.6.5","v7.6.4","v7.6.3","v7.6.2","v7.6.1","v7.6","v7.5.9","v7.5.8","v7.5.7","v7.5.6","v7.5.5","v7.5.4","v7.5.3","v7.5.2","v7.5.1","v7.4.2","v7.4.1","v7.4","v7.3.3","v7.3.2","v7.3.1","7.3.1","v7.3","v7.2.2","7.2.2","v7.2.1","v7.2","v7.1","v7","v6.9.2","v6.9.1","v6.9","v6.8.9","v6.8.8","v6.8.7","v6.8.6","v6.8.5","v6.8.4","v6.8.3","v6.8.2","v6.8.1","v6.8","v6.7.9.2","v6.7.9.1","v6.7.9","v6.7.8.2","v6.7.8.1","v6.7.8","v6.7.7","v6.7.5","v6.7.4_-_Je_suis_Charlie_edition","v6.7.3","v6.7.2","v6.7.1","v6.7","v6.6.9","v6.6.8","v6.6.7","v6.6.6_-_Friday_the_13th_edition","v6.6.4","v6.6.3","v6.6.2","v6.6.1","v6.6","v6.5.5","v6.5.4","v6.5.3","v6.5.2","v6.5.1","v6.5","v6.4.5","v6.4.4","v6.4.3","v6.4.2","v6.4.1","v6.4","v6.3.3","v6.3.2","v6.3.1","v6.3","v6.2.3_-_End_of_World_Edition","v6.2.2","v6.2.1","v6.2","v6.1.8","v6.1.7","v6.1.6","v6.1.5","v6.1.4","v6.1.3","v6.1.2","v6.1.1","v6.1","v6","v5.9.8","v5.9.7","v5.9.6.2","v5.9.6.1","v5.9.6","v5.9.5","v5.9.4","v5.9.3","v5.9.2","v5.9.1","v5.9","v5.8.7","v5.8.6","v5.8.5","v5.8.4","v5.8.3","v5.8.2","v5.8.1","v5.8","v5.7","v5.6.8","v5.6.7","v5.6.6","v5.6.5","v5.6.4","v5.6.3","v5.6.2","v5.6.1","v5.6","v5.5.1","v5.5","v5.4.5","v5.4.4","v5.4.3","v5.4.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71858.json","vanir_signatures_modified":"2026-09-11T08:36:46Z","vanir_signatures":[{"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":{"function":"Notepad_plus::command","file":"PowerEditor/src/NppCommands.cpp"},"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},{"source":"https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7686e5a3025eaf1fb8e024c2ceb54670ea05f5fb","target":{"file":"PowerEditor/src/NppCommands.cpp"},"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"},{"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"}},{"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":["6034042945866451507432798700201493950","92747018934665569025977167139259065195","174198081936750792955863059568650173944","22504570449403026531170053989040171946"],"threshold":0.9},"id":"CVE-2026-71858-a50aebd3"},{"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":["73934179812655448165055737310699482624","165596075505432413455088505965299296812","15697846664367097651332048867224774793","327363084166932039838311470772824169691","27658911648692079515982892510481891031"],"threshold":0.9},"id":"CVE-2026-71858-de8dc4ca","signature_type":"Line","signature_version":"v1"},{"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"},"deprecated":false,"digest":{"line_hashes":["6034042945866451507432798700201493950","334353779386401870174063888495694561794","326625148741171092391788974846883019072","336631628258075612844746682261314719098"],"threshold":0.9},"id":"CVE-2026-71858-ed0a8dc7"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}