Skip to main content

Notepad++ CVE-2026-46710

| EUVDEUVD-2026-39905 HIGH
Untrusted Search Path (CWE-426)
2026-06-26 GitHub_M
7.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to user-writable install directory
  2. Delivery
    Plant malicious powershell.exe beside NppShell.msix
  3. Exploit
    Privileged user runs installer, selects that directory
  4. Execution
    Installer invokes bare 'powershell' from working dir
  5. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

notepad-plus-plus 8.9.4, < 8.9.6

Affected Packages

euvd notepad_plus_plus_8_9_4 fix: 8.9.6

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
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
vuln.today AI 7.0 HIGH

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 26, 2026 - 22:02 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
extremely popular Windows source-code editor with very large install base
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2025-15556 HIGH
7.5 Feb 03

Notepad++ versions prior to 8.8.9 contain an update integrity verification vulnerability (CVE-2025-15556) when using the

CVE-2026-85279 HIGH POC
8.6 Sep 22

Loading a crafted Notepad++ plugin that reports more than 30 external lexers can overflow a 30-element stack array insid

CVE-2026-48778 HIGH POC
7.8 Jun 26

Local code execution in Notepad++ before 8.9.6.1 occurs because the <GUIConfig name="commandLineInterpreter"> value in c

CVE-2026-86054 HIGH POC
7.8 Sep 22

Notepad++ installations prior to 8.9.8 crash when a local attacker can control the -settingsDir= command-line argument a

CVE-2026-77605 HIGH POC
7.8 Sep 22

Arbitrary code execution in Notepad++ prior to 8.9.8 on Windows 10 and Windows 11 occurs when the editor's 'Folder as Wo

CVE-2023-47452 HIGH POC
7.8 Nov 30

An Untrusted search path vulnerability in notepad++ 6.5 allows local users to gain escalated privileges through the msim

CVE-2023-40031 HIGH POC
7.8 Aug 25

Notepad++ is a free and open-source source code editor. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-32168 HIGH POC
7.8 Sep 28

Notepad++ versions 8.4.1 and before are vulnerable to DLL hijacking where an attacker can replace the vulnerable dll (Ux

CVE-2019-16294 HIGH POC
7.8 Sep 14

SciLexer.dll in Scintilla in Notepad++ (x64) before 7.7 allows remote code execution or denial of service via Unicode ch

CVE-2026-85995 HIGH POC
7.3 Sep 22

Improper signature verification in the Notepad++ updater path allows a locally planted or modified GUP.exe updater binar

CVE-2026-25926 HIGH POC
7.3 Feb 19

Notepad++ versions before 8.9.2 allow local code execution through an unsafe search path vulnerability that permits atta

CVE-2026-85288 MEDIUM POC
6.7 Sep 22

Notepad++ releases prior to 8.9.8 enforce their shortcuts.xml HMAC integrity check on the Macro menu and keyboard-shortc

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy