HIGH 7.8

CVE-2026-46710: Notepad++ Installer Privilege Escalation Vulnerability

Notepad++ versions 8.9.4 through 8.9.6 contain a local privilege escalation flaw in the Windows installer. The installer runs PowerShell without specifying a full file path after changing to a custom installation directory. An attacker who can place a fake powershell.exe in a user-writable directory could trick a privileged user into running the malicious executable during installation, granting it administrator-level access. The vulnerability has been resolved in version 8.9.6.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-426
Affected products
1 configuration(s)
Published / Modified
2026-06-26 / 2026-06-29

NVD description (verbatim)

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.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from an untrusted search-path issue (CWE-426) where the Notepad++ installer invokes powershell.exe using a relative rather than absolute path. After the installer changes the working directory to a user-controllable custom installation location (the contextMenu directory), a subsequent call to PowerShell without a fully qualified path allows an attacker to substitute their own executable. If a privileged user runs the installer and selects that compromised directory, the attacker's powershell.exe inherits the installer's elevated token, resulting in arbitrary code execution with administrative privileges.

Business impact

Organizations using Notepad++ in shared or multi-user environments face risk during software updates. An unprivileged user could escalate their access by preparing a malicious payload and waiting for an administrator to install or upgrade Notepad++. Compromised administrative accounts could lead to lateral movement, data exfiltration, malware deployment, or persistent system compromise. The attack requires social engineering or environmental access but yields direct privilege escalation.

Affected systems

Notepad++ versions 8.9.4, 8.9.5, and 8.9.6 are vulnerable. The issue is specific to the Windows installer and affects any installation where a user selects a custom installation directory. Users running Notepad++ as a portable application or using Linux/macOS versions are not impacted.

Exploitability

This vulnerability requires local access and user interaction—the attacker must place a malicious executable beforehand and rely on a privileged user choosing a custom installation directory and running the installer. While not remotely exploitable, the barrier to exploitation is moderate for an attacker with system access. The vulnerability does not appear on the CISA Known Exploited Vulnerabilities list as of the source data timestamp.

Remediation

Upgrade to Notepad++ 8.9.6 or later immediately. When running the installer, ensure you accept the default installation directory or verify that any custom directory has not been tampered with. Organizations should push updates through standard patch management workflows and consider blocking older versions where feasible.

Patch guidance

Download and install Notepad++ 8.9.6 from the official Notepad++ website (notepad-plus-plus.org). The patch corrects the path resolution issue by using absolute paths for PowerShell invocation. Verify the integrity of downloaded files using the publisher's checksum if available. Organizations can script or automate installation with the fixed version for consistency across endpoints.

Detection guidance

Monitor for failed installer executions or unexpected PowerShell processes spawned from user-writable directories during Notepad++ installation. Look for process trees where powershell.exe appears to be running from a non-standard path. Event log analysis on vulnerable systems can reveal abnormal execution patterns. File integrity monitoring on installation directories may detect unauthorized executable placement. Endpoint Detection and Response (EDR) tools should alert on suspicious child processes launched by installer executables running with high privilege.

Why prioritize this

Although the vulnerability requires local access and user interaction, it yields complete system compromise via privilege escalation (CVSS 7.8, HIGH severity). Organizations with mixed-privilege user bases or shared development machines should prioritize patching. The relatively simple attack pattern and high impact merit swift remediation, though remote exposure is limited compared to network-based vulnerabilities.

Risk score, explained

CVSS 3.1 score of 7.8 reflects a high-severity local privilege escalation with high impact on confidentiality, integrity, and availability. The attack vector is local (AV:L), requires no special privileges (PR:N), and necessitates user interaction (UI:R) but succeeds once activated. The undiscovered/unreliable nature of exploitation and lack of widespread public tooling moderate the practical risk somewhat, but the severity remains substantial for environments where Notepad++ is used.

Frequently asked questions

Does this vulnerability affect Notepad++ on macOS or Linux?

No. The vulnerability is specific to the Windows installer. Notepad++ users on macOS and Linux are not affected.

Can I be exploited if I use the portable version of Notepad++?

No. The portable version does not use an installer and is not vulnerable. Only users who run the traditional Windows installer during installation or updates are at risk.

If I upgrade to 8.9.6, am I fully protected?

Yes, version 8.9.6 and later versions include the fix. Ensure you download from the official Notepad++ website and verify the file integrity if possible.

What should I do if I suspect an attacker exploited this on my system?

Assume administrative compromise. Perform a full system scan with updated antimalware tools, review administrative account activities and recent privilege escalation events, change all high-privilege credentials, and consider engaging incident response specialists to investigate lateral movement or persistence mechanisms.

This analysis is provided for informational purposes. CVSS scores, CWE classifications, affected versions, and patch information are derived from official CVE data. The absence of this vulnerability from the CISA KEV catalog is based on available data at the time of publication and does not imply reduced risk. Organizations should verify patch applicability and test updates in controlled environments before wide deployment. Consult Notepad++'s official security advisories and your vendor for authoritative remediation guidance. Source: NVD (public-domain), retrieved 2026-08-05. Analysis generated by SEC.co (claude-haiku-4-5).