Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Remote Code Execution in Windows Notepad App via Markdown Link Handling

IdentifiersCVE-2026-20841CWE-77· Improper Neutralization of Special…

CVE-2026-20841 is a command injection vulnerability in the modern Windows Notepad application distributed via the Microsoft Store. The flaw is in Notepad’s Markdown rendering and hyperlink handling logic for .md files: when a user opens a crafted Markdown file and activates a malicious link, Notepad can pass insufficiently sanitized URI/protocol input to the operating system, including dangerous schemes such as file:// and ms-appinstaller://. Multiple reports indicate the vulnerable path ultimately invokes system protocol handling with inadequate validation, enabling attacker-controlled local or remote content to be launched. The issue affects the modern Notepad app with Markdown support, not the legacy notepad.exe, and affected versions are reported as 11.0.0 through versions prior to 11.2510 (also described in some reporting as 11.2508 and earlier).

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in remote code execution in the security context of the logged-in user. An attacker can cause arbitrary commands or attacker-controlled files to be executed, including content hosted on remote servers or reachable network paths. If the victim is running with administrative privileges, the impact can extend to full system compromise. Because the vulnerable application is a trusted built-in/editor-style application, the flaw is well suited to phishing and social-engineering delivery using weaponized Markdown files.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by preventing users from opening untrusted Markdown (.md) files in the modern Notepad app, training users not to click links embedded in Markdown documents, and monitoring for unusual child-process execution or protocol-handler launches originating from Notepad. Restrict user administrative privileges to limit post-exploitation impact. No vendor workaround was reported in the provided content.

Remediation

Patch, then assume compromise.

Update the Microsoft Store version of Windows Notepad to version 11.2510 or later. Ensure Microsoft Store application updates are enabled and verify deployed endpoint versions for compliance. Apply the February 2026 Microsoft fix for CVE-2026-20841; the legacy Notepad executable is not the affected component.
PUBLIC EXPLOITS

Exploits

5 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (9 hidden).

VALID 5 / 14 TOTALView more in app
CVE-2026-20841MaturityPoCVerified exploit

This repository is a small multi-language proof-of-concept generator for alleged CVE-2026-20841 affecting Microsoft Windows Notepad. It contains three equivalent scripts in JavaScript, Python, and VBScript plus a README. Each script accepts <host> <port> <payload-filename>, validates the port, constructs a UNC/WebDAV-style file URI of the form file:///\\host@port\DavWWWRoot\payload, and writes a Markdown file named poc.md containing a clickable link labeled 'Execute Payload'. The intended attack flow is social-engineering based: the victim opens poc.md in modern Windows Notepad and clicks the embedded link, causing Notepad/Windows to access a remote attacker-controlled WebDAV resource. The code does not implement a WebDAV server, memory corruption, shellcode, or a full RCE chain; it only generates the lure document and relies on external infrastructure and user interaction. Structurally, the repository is straightforward: three standalone entry points with near-identical logic and a README describing the claimed vulnerability, affected products, impact, and defensive guidance. Overall, this is best classified as a PoC/lure generator rather than a weaponized exploit.

0xBlackashDisclosed Jun 1, 2026javascriptpythonfilewebnetwork
PoC-CVE-2026-20841MaturityPoCVerified exploit

Repository contains a minimal, user-assisted PoC for CVE-2026-20841 described as a Windows Notepad (< 11.2510) issue enabling “remote code execution” via a specially crafted Markdown file. There is no exploit code in a traditional sense (no scripts/binaries); the core artifact is `poc.md`, which embeds (1) a GitHub raw HTTPS link to download an external executable (`poc.exe`) and (2) a local Windows path link (`C:\Users\user\Downloads\poc.exe`) intended to run that executable after download. The exploit capability is therefore a social-engineering click-through chain that results in execution of an externally hosted payload, contingent on Notepad’s handling of Markdown links and the user clicking them in sequence. Structure: LICENSE (MIT), README.md (requirements and steps), and poc.md (the crafted Markdown with the two links).

EleniChristopoulouDisclosed Feb 17, 2026markdownlocal / user-assisted (social engineering) via Markdown link handling in Windows Notepadnetwork (HTTPS download of external executable)
CVE-2026-20841MaturityPoCVerified exploit

Repository is a small proof-of-concept for CVE-2026-20841, described as a Windows Notepad Markdown renderer issue where URL protocols are not restricted, allowing clickable links to invoke arbitrary protocol handlers. Structure and purpose: - README.md: Explains the vulnerability concept and three user-assisted vectors: (1) file:/// resolving to remote UNC/WebDAV paths to fetch/execute a payload, (2) ms-appinstaller:// to open App Installer with a remote .appx/.msix source, and (3) file:// to launch local executables. - poc.js and poc.py: Two equivalent generators (Node.js and Python) that create a malicious Markdown file named poc.md. They take <host> <port> <payload-path> and embed a link of the form file:///\\<host>@<port>\DavWWWRoot\<payload-path>. - poc.md: Example generated output containing a link to file:///\\192.168.1.100@5005\DavWWWRoot\hello.vbs. - hello.py and hello.vbs: Benign demo payloads (message box) to demonstrate code execution when the link is clicked. Exploit capabilities: - Generates a crafted Markdown document that, when opened in vulnerable Notepad and clicked, causes Windows to resolve and open a remote UNC/WebDAV resource (or other protocol handlers described in the README). This can lead to execution of remote content depending on file association/interpreter availability and Windows security prompts. No scanning, brute force, or automatic exploitation is present; it is a user-assisted PoC generator focused on producing the malicious link and demonstrating payload execution behavior.

atiillaDisclosed Feb 12, 2026markdownpythonnetwork (user-assisted) via file:/// UNC/WebDAV path to remote payloadlocal (user-assisted) via file:// to execute local binariesnetwork (user-assisted) via ms-appinstaller:// to fetch/install remote app package
CVE-2026-20841-PoCMaturityPoCVerified exploit

Repository contains a minimal proof-of-concept for CVE-2026-20841 affecting the Microsoft Store version of Windows Notepad (builds prior to 11.2510). Structure: - README.md: Describes the claimed vulnerability (Markdown link rendering fails to validate/sanitize URI schemes), impact (RCE), affected versions, and remediation. Includes two PoC link examples. - PoC.md: The actual clickable Markdown payload demonstrating two vectors. Exploit capability: user-assisted code execution by embedding malicious hyperlinks in a Markdown file opened in Notepad. When the victim clicks the link, Notepad passes the URI to Windows protocol handling without proper validation. Demonstrated outcomes include (1) invoking the ms-appinstaller protocol to fetch/install a remote .appx from an attacker-controlled HTTPS URL, and (2) launching a local executable via a file:// URI (cmd.exe shown). No automation, shellcode, or post-exploitation logic is included; it is a conceptual/interaction-based PoC rather than a full weaponized exploit.

dogukankurnazDisclosed Feb 12, 2026markdownnetwork (user-assisted) via protocol handler abuse in Markdown linkslocal execution via file:// URI invocation (user-assisted)
CVE-2026-20841MaturityPoCVerified exploit

Repository is a small proof-of-concept for CVE-2026-20841 (“Windows Notepad RCE”) centered on abusing Notepad’s Markdown link handling to launch a file:/// URL that points to a remote UNC path (WebDAV/SMB). The repo contains two standalone generators (poc.js and poc.py) that take <webdav-server-host> <port> <server/path/to/payload> and write a local markdown file (poc.md) embedding a link of the form file:///\\host@port\DavWWWRoot\payload. The intended attack flow is: attacker hosts a payload on a WebDAV/SMB server; victim opens poc.md in Notepad and clicks the link; Windows fetches/opens the remote file, potentially executing it via file association (e.g., .py if Python is installed). The README documents limitations: many executable/script extensions trigger Windows warnings; using .py or .jar may bypass warnings if the interpreter/runtime is installed. sample-payloads/ provides benign demo payloads (hello.py shows a Windows MessageBox via ctypes; hello.vbs shows a VBScript MsgBox). No scanning, persistence, or C2 is implemented—this is a link-generation PoC rather than a full exploitation framework.

tangent65536Disclosed Feb 11, 2026markdownjavascriptnetworkuser-assisted (social engineering / link click)
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindow Notepadapplication
Microsoft CorporationWindows Notepadapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

258 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

microsoft generalNews
May 18, 2026
2026 年 5 月のセキュリティ更新プログラム (月例)

Windows Notepad app のリモートコード実行脆弱性。今月は FAQ 追加のみで、情報更新として言及されている。

Read more
nsfocus globalNews
Mar 4, 2026
Microsoft’s February Security Update of High-Risk Vulnerability Notice for Multiple Products - NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks.

A Windows Notepad remote code execution vulnerability where a malicious link in a Markdown file can trigger an unvalidated protocol handler, leading to loading/executing a remote file.

Read more
techrepublic com securityNews
Feb 20, 2026
Microsoft: Critical Security Issue Found in Windows Notepad - TechRepublic

High-severity remote code execution vulnerability in the modern Windows Notepad app (with Markdown support/clickable links) where a crafted Markdown file and user interaction (opening the file and clicking a malicious link) can lead to code execution in the context of the logged-in user.

Read more
cyber security newsNews
Feb 20, 2026
PoC Released for Windows Notepad Vulnerability that Enables Malicious Command Execution

A high-severity command-injection-driven remote code execution issue in the modern Microsoft Store Windows Notepad Markdown link handling, where insufficient filtering of hyperlink URIs passed to ShellExecuteExW() enables execution via malicious protocols (e.g., file://, ms-appinstaller://) after user interaction.

Read more
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity190

Community discussion across Reddit, Mastodon, and other social sources.