CVE-2026-48778: Notepad++ OS command injection in commandLineInterpreter configuration

CVE-2026-48778 · Severity: high · CVSS 7.8 · Published 2026-06-26

Notepad++ is a popular open-source text and code editor. A security flaw allows an attacker to execute malicious code on a user's computer by modifying the application's configuration file. If a user is tricked into using a compromised configuration and then selects the 'Open Containing Folder in cmd' option, the attacker's code will run with the user's full permissions, potentially leading to a complete system takeover.

Quick answers

Is CVE-2026-48778 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-48778 being exploited in the wild.
How severe is CVE-2026-48778?
High severity, with a CVSS score of 7.8, published 26 June 2026.
Which products and versions are affected?
Notepad++ Notepad++ < 8.9.6.1.
Is there a fix for CVE-2026-48778?
A patch was published on 2026-05-25: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-48778 attacked?
It is attacked with local access, in a network appliance.
Am I affected by CVE-2026-48778?
Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A command injection vulnerability exists in Notepad++ versions prior to 8.9.6.1 due to improper validation of the 'commandLineInterpreter' tag within the config.xml file. The application reads this value and passes it directly to ShellExecute when a user selects 'File -> Open Containing Folder -> cmd'. An attacker can exploit this by modifying the configuration file via local access, malicious shortcuts, or cloud synchronization poisoning. Successful exploitation requires the user to manually trigger the specific 'cmd' menu action, resulting in arbitrary code execution with the privileges of the Notepad++ process. The issue was resolved in version 8.9.6.1 by removing the configurable interpreter tag and using hardcoded, trusted system paths.

Affected products

  • Notepad++ Notepad++ < 8.9.6.1

Timeline

  • 2026-05-25: patched: Fix committed to repository
  • 2026-05-26: advisory: GitHub Security Advisory published
  • 2026-06-26: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.