Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisorypersistence-method

Notepad++ patched arbitrary code execution flaws in `config.xml` and `shortcuts.xml`

Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen May 27, 2026

Notepad++ patched arbitrary code execution flaws in `config.xml` and `shortcuts.xml`

Notepad++ released fixes for two arbitrary code execution issues that allowed attacker-controlled configuration data to trigger program execution through trusted application features. One flaw, tracked as GHSA-3x3f-3j39-pj3v and affecting versions through v8.9.6, let malicious content placed in shortcuts.xml create legitimate-looking entries under the Run menu; when clicked, those entries were passed to ShellExecute, enabling execution of arbitrary programs and potential persistence. The advisory said the attack could be carried out by modifying shortcuts.xml directly or by steering Notepad++ to a malicious settings directory via a crafted .lnk shortcut.

The project also fixed a separate issue in config.xml, tracked as CVE-2026-48778 and GHSA-7hm3-wp5q-ccv9, by removing the configurable commandLineInterpreter setting that could be abused for unsafe command execution and replacing it with trusted system paths for launching cmd and PowerShell. Additional hardening for the shortcuts.xml path was shipped in the v8.9.6.x line, including absolute-path enforcement, SearchPathW resolution for bare executable names, blocking invalid targets, and warning dialogs for insecure http URLs and risky executable types from untrusted locations; the changes also added a new Open Containing Folder in PowerShell feature and related File Browser menu entries.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · May 25, 2026 – May 27, 2026
  1. May 27, 20266mo ago

    GitHub advisory discloses shortcuts.xml user-command injection flaw

    On May 27, 2026, a GitHub security advisory disclosed GHSA-3x3f-3j39-pj3v, describing an arbitrary code execution issue in Notepad++ versions up to and including v8.9.6. The advisory said the flaw was patched in v8.9.6.1 and explained that attacker-controlled shortcuts.xml entries could create legitimate-looking Run menu items that execute arbitrary programs.

    Arbitrary Code Execution via shortcuts.xml UserCommand Injection · Advisory · notepad-plus-plus/notepad-plus-plus · GitHub
  2. May 26, 20266mo ago

    Notepad++ patches shortcuts.xml command execution issue in commit 6b3dc52

    On May 26, 2026, Notepad++ committed a fix for an arbitrary code execution issue involving shortcuts.xml and Run menu commands. The patch added multiple validation checks and five new warning or error dialogs to reduce unsafe command execution risks.

    Fix arbitrary code execution vulnerability via shortcuts.xml (CVE-202… · notepad-plus-plus/notepad-plus-plus@6b3dc52 · GitHub
  3. May 25, 20266mo ago

    Notepad++ fixes config.xml command execution flaw in commit 24c7b5c

    On May 25, 2026, Notepad++ committed a fix for an arbitrary code execution vulnerability tied to the configurable "commandLineInterpreter" setting in config.xml. The change removed the unsafe setting and replaced it with trusted system paths for launching cmd and PowerShell, with the fix associated with the v8.9.6.4 release line.

    Fix arbitrary code execution vulnerability via config.xml (CVE-2026-4… · notepad-plus-plus/notepad-plus-plus@24c7b5c · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.