Windows Notepad App Remote Code Execution Vulnerability (CVE-2026-20841)
Windows Notepad fails to neutralise special elements in commands, allowing an attacker to trick a user into clicking a malicious link in a Markdown file, which launches unverified protocols that load and execute remote and local files. This leads to local arbitrary code execution.
Description
Improper neutralization of special elements used in a command ('command injection') in Windows Notepad App allows an unauthorized attacker to execute code locally.
FAQ
How could an attacker exploit this vulnerability? An attacker could trick a user into clicking a malicious link inside a Markdown file opened in Notepad, causing the application to launch unverified protocols that load and execute both remote and local files.
FAQ
According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. For example, when the score indicates that the Attack Vector is Local and User Interaction is Required , this could describe an exploit in which an attacker, through social engineering, convinces a victim to download and open a specially crafted file from a website which leads to a local attack on their computer.
FAQ
Which versions of Windows Notepad are affected by this vulnerability? References Identification Last version of the Windows Notepad affected by this vulnerability Version 11.2504.62.0 First version of the Windows Notepad with this vulnerability addressed Version 11.2512.26.0
Windows Notepad App
Windows Notepad App
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, Notepad does not properly validate or neutralise protocol handlers in Markdown links, allowing them to launch arbitrary commands or files.
Impact
An attacker could execute code locally on the victim's machine, but the attack requires user interaction (clicking a link) and is carried out locally.
What the attacker needed
Victim opens a malicious Markdown file in Notepad; victim clicks a link in the file
The fix
The vulnerability was fixed in Windows Notepad version 11.2512.26.0.
How it was found
- Open a Markdown file in Notepad that contains a malicious link.
- Click the malicious link inside the Markdown file.
- Notepad launches an unverified protocol that loads and executes remote and local files.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Notepad can open Markdown files, which are text files with formatting. A link in such a file can point to a special kind of address (a protocol) that tells Windows to run a program or load a file. Because Notepad does not check these links properly, clicking one can run harmful code on your computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.