CVE-2026-73250

Notepad++: Install-time PowerShell command injection through installation path

Published Aug 11, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.7, the Notepad++ Windows 11 x64 and ARM64 installer passes the attacker-influenced installation directory `$INSTDIR` from PowerEditor/installer/nppSetup.nsi into a PowerShell `-Command` string used by RegisterMSIX to invoke Add-AppxPackage, allowing PowerShell subexpression syntax such as `$()` in the installation path to execute commands in the installer's security context when the context menu component is selected. This issue is fixed in version 8.9.7.

Analysis

AI-generated

Technical impact

Untrusted input in the installer’s $INSTDIR variable is passed unvalidated to a PowerShell command that registers an MSIX package. An attacker can inject PowerShell subexpression syntax such as $() in the chosen installation path, causing arbitrary commands to be executed in the installer’s security context. The vulnerability, identified as a command injection flaw, may allow the execution of malware or privileged code during the setup process, posing a moderate risk to confidentiality, integrity, and availability of the affected system. The CVSS score, 5.4, reflects the medium severity of the flaw.

Affected Systems

Notepad++ for Windows 11, both x64 and ARM64 installers, versions prior to 8.9.7 are affected. The vulnerability is specifically tied to the Windows 11 x64 and ARM64 installers that accept a user‑specified installation directory. Users who installed any of these versions before the 8.9.7 release are potentially exposed.

Risk and Exploitability

Because the flaw requires the attacker to control the installation directory during a legitimate software installation, the attack vector is local but only applicable when an installation is performed. The EPSS score, less than 1 percent, indicates a very low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, further suggesting limited exploitation activity. The CVSS of 5.4, combined with the low EPSS, suggests a moderate risk that can be mitigated by addressing the described issue. The attacker would need to provide a malicious installation path that includes PowerShell subexpression syntax, and the context menu component of the installer must be selected for the injected command to run.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Notepad++ version 8.9.7 or later, which removes the vulnerability.
  • During installation, ensure the chosen installation directory contains only simple, alphanumeric names and no shell metacharacters such as $ or () .
  • Only obtain installer packages from the official Notepad++ GitHub releases or the official website to prevent tampering.

Generated by OpenCVE AI on August 12, 2026 at 19:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Notepad-plus-plus
Notepad-plus-plus notepad++
Vendors & Products Notepad-plus-plus
Notepad-plus-plus notepad++
Type Values Removed Values Added
Description Notepad++ is a free and open-source source code editor. Prior to 8.9.7, the Notepad++ Windows 11 x64 and ARM64 installer passes the attacker-influenced installation directory `$INSTDIR` from PowerEditor/installer/nppSetup.nsi into a PowerShell `-Command` string used by RegisterMSIX to invoke Add-AppxPackage, allowing PowerShell subexpression syntax such as `$()` in the installation path to execute commands in the installer's security context when the context menu component is selected. This issue is fixed in version 8.9.7.
Title Notepad++: Install-time PowerShell command injection through installation path
Weaknesses CWE-77
References
Metrics cvssV4_0

{'score': 5.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 3:14 PM
Reserved
Aug 11, 2026, 5:18 PM
Status
Awaiting Analysis
Published
Aug 11, 2026, 11:18 PM
Modified
Sep 9, 2026, 8:58 PM