Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to user-writable install directory
-
DeliveryPlant malicious powershell.exe beside NppShell.msix
-
ExploitPrivileged user runs installer, selects that directory
-
ExecutionInstaller invokes bare 'powershell' from working dir
-
ImpactAttacker binary executes with installer's elevated privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Requires all of: (1) the attacker can pre-place a malicious powershell.exe in a user-writable custom installation directory; (2) a privileged user subsequently runs the affected Notepad++ installer (8.9.4-8.9.5); and (3) that privileged user explicitly selects the attacker-controlled directory as the install target, triggering the context-menu / Add-AppxPackage registration step. Limiting factors: exploitation is local only (AV:L), depends on a non-default install path (installing into the default %ProgramFiles% - not user-writable - prevents it), and hinges on a privileged user's action and directory choice, which is why real-world attack complexity is high despite the High CVSS score. |
| Impact | Signals are mixed and point to a real-but-conditional risk rather than a mass-exploitation emergency. The CVSS 4.0 vector (AV:L/AC:H/AT:N/PR:N/UI:N) yields 7.5 (High): local attack vector, high attack complexity, and full confidentiality/integrity/availability impact (VC:H/VI:H/VA:H) with no scope change. Notably the vector lists UI:N, which conflicts with the description - exploitation clearly requires a privileged user to run the installer and select the attacker-writable directory, i.e. victim interaction; treat the published UI:N as likely understated and AC:H as the more honest reflection of the multiple preconditions. There is no CISA KEV listing and no EPSS score in the provided data, and no public exploit identified - consistent with a niche, socially-gated local EoP that is unattractive for automated mass exploitation. SSVC framing: exploitation = none observed, automatable = no (requires a privileged human action and a non-default install path), technical impact = total. Net: a legitimate hardening priority for environments where users install software into custom/shared directories, but not an internet-facing emergency. |
| Exploit ScenarioDerived | An attacker who can write to a shared or user-controlled directory (e.g., a common downloads or staging folder) drops a malicious powershell.exe there. An administrator later runs the Notepad++ installer and selects that directory as the install target; during context-menu registration the installer launches the planted powershell.exe with elevated privileges, executing the attacker's code as the installing (privileged) user. No public POC is currently identified, and the high attack complexity reflects the need to win this timing/path race. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
Local privilege escalation in the Notepad++ Windows installer (versions 8.9.4 through 8.9.5) lets an unprivileged local attacker gain the elevated privileges of the installer by planting a malicious powershell.exe. Because the installer calls powershell.exe by name (not absolute path) after setting the working directory to the installation contextMenu folder, a privileged user who installs into an attacker-writable custom directory triggers execution of the attacker's binary. No public exploit has been identified at time of analysis; the issue is fixed in 8.9.6 and corresponds to CWE-426 (Untrusted Search Path).
RemediationAI
Vendor-released patch: upgrade to Notepad++ 8.9.6, which resolves the PowerShell path from the HKLM registry (SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell) and invokes that absolute path instead of the bare 'powershell' name; obtain it via the official release and review the advisory at https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-6f8f-vmfc-r8c5. If you cannot immediately patch, run the installer only from trusted, non-writable locations and install Notepad++ into a default protected path such as %ProgramFiles% (which standard users cannot write to), avoiding custom user-writable installation directories where a malicious powershell.exe could be pre-placed - the trade-off is loss of flexible install-location choice. Additionally, audit candidate install directories for a stray powershell.exe before running the elevated installer, and restrict who can drop files into shared install staging folders; these controls reduce the planting opportunity but do not substitute for upgrading.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-426 (Untrusted Search Path / insecure binary resolution) in the NSIS-based installer script (PowerEditor/installer/nppSetup.nsi). To register the Windows 11 modern right-click context menu, the installer ran 'powershell -Command "Add-AppxPackage ..."' invoking powershell.exe by bare name. On Windows, command resolution searches the current working directory and PATH; since the installer first set its working directory to $INSTDIR\contextMenu, a powershell.exe placed alongside the MSIX in that directory is resolved and executed before the legitimate System32 copy. The affected product per CPE is cpe:2.3:a:notepad-plus-plus:notepad-plus-plus, the widely used open-source Windows source-code editor. The fix reads the trusted PowerShell path from HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell and invokes that absolute path instead.
Know when Notepad Plus Plus gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local-only binary planting (AV:L); multiple preconditions and a privileged user must select the attacker dir, so AC:H and UI:R; attacker needs no prior privileges (PR:N); code runs as installer with full C/I/A.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Notepad++ is a free and open-source source code editor. From 8.9.4 until 8.9.6, Notepad++ contains a local privilege escalation vulnerability in the installer. During installation, the installer invokes powershell.exe without using an absolute path after setting the working directory to the installation contextMenu directory. If an attacker can pre-place a malicious powershell.exe in a user-writable custom installation directory, and a privileged user later runs the installer and selects that directory, the attacker-controlled executable is launched with the elevated privileges of the installer. This vulnerability is fixed in 8.9.6.
Executive ViewAI
Notepad++ versions 8.9.4-8.9.5 contain a Windows installer vulnerability enabling unprivileged attackers to escalate to administrator privileges. This risk directly threatens system integrity and administrative trust boundaries in any Windows environment where these versions are deployed. Organizations must upgrade immediately to version 8.9.6 to restore security posture.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
More in Notepad Plus Plus
View allNotepad++ versions prior to 8.8.9 contain an update integrity verification vulnerability (CVE-2025-15556) when using the
Loading a crafted Notepad++ plugin that reports more than 30 external lexers can overflow a 30-element stack array insid
Local code execution in Notepad++ before 8.9.6.1 occurs because the <GUIConfig name="commandLineInterpreter"> value in c
Notepad++ installations prior to 8.9.8 crash when a local attacker can control the -settingsDir= command-line argument a
Arbitrary code execution in Notepad++ prior to 8.9.8 on Windows 10 and Windows 11 occurs when the editor's 'Folder as Wo
An Untrusted search path vulnerability in notepad++ 6.5 allows local users to gain escalated privileges through the msim
Notepad++ is a free and open-source source code editor. Rated high severity (CVSS 7.8), this vulnerability is no authent
Notepad++ versions 8.4.1 and before are vulnerable to DLL hijacking where an attacker can replace the vulnerable dll (Ux
SciLexer.dll in Scintilla in Notepad++ (x64) before 7.7 allows remote code execution or denial of service via Unicode ch
Improper signature verification in the Notepad++ updater path allows a locally planted or modified GUP.exe updater binar
Notepad++ versions before 8.9.2 allow local code execution through an unsafe search path vulnerability that permits atta
Notepad++ releases prior to 8.9.8 enforce their shortcuts.xml HMAC integrity check on the Macro menu and keyboard-shortc
EUVD-2026-39905
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB