RCE in Microsoft Windows Notepad
CVE-2026-20841
Improper neutralization of special elements used in a command ('command injection') in Windows Notepad App allows an unauthorized attacker to execute code locally.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.089, 95.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Microsoft Windows Notepad — versions 11.0.0
- Microsoft Windows Notepad
Weakness classification (CWE)
Public exploits and proof-of-concept code
16 public repositories with exploit or proof-of-concept code for this CVE:
- BTtea/CVE-2026-20841-PoC (142 stars, last pushed 2026-02-11): PoC
- patchpoint/CVE-2026-20841 (12 stars, last pushed 2026-02-12)
- atiilla/CVE-2026-20841 (5 stars, last pushed 2026-02-12)
- uky007/CVE-2026-20841_notepad_analysis (3 stars, last pushed 2026-02-12)
- hamzamalik3461/CVE-2026-20841 (2 stars, last pushed 2026-10-13): 🛠 Demonstrate remote code execution in Windows Notepad via markdown links exploiting unsecured URL protocols.
- SecureWithUmer/CVE-2026-20841 (2 stars, last pushed 2026-02-12): PoC for a remote code execution flaw in Windows Notepad's markdown renderer. The markdown engine does not restrict URL protocols, allowing arbitrary protocol handlers to be triggered via clickable li…
- dogukankurnaz/CVE-2026-20841-PoC (2 stars, last pushed 2026-02-12): CVE-2026-20841
- tangent65536/CVE-2026-20841 (2 stars, last pushed 2026-02-11): PoC for the "Windows Notepad RCE"
- 0xBlackash/CVE-2026-20841 (1 star, last pushed 2026-06-02): CVE-2026-20841
- 0xredash/CVE-2026-20841 (1 star, last pushed 2026-06-02): CVE-2026-20841
6 more are listed on the interactive page.
References
- Windows Notepad App Remote Code Execution Vulnerability (vendor-advisory, patch, Vendor Advisory)
- news.ycombinator.com/item (Issue Tracking)
This CVE has public exploit evidence. See the latest CVEs with public exploits.