Skip to content
RCE Write-up Intermediate

Notepad’in Evrimi ve CVE-2026–20841

The modern Microsoft Store Notepad app rendered Markdown links without properly validating the URI scheme, so a crafted Markdown file could contain a link using a risky protocol such as file:// or shell:. If the user opened the file and Ctrl+clicked the link, the system could follow that protocol and run a binary instead of opening a browser, potentially leading to remote code execution.

medium.com

Published on medium.com

Windows kullanıcılarının en güvenli limanı neresi diye sorsak, muhtemelen çoğumuz Not Defteri der. Makro yok, script çalıştırmıyor, sadece düz metin (plain text) gösteriyor vss…

Fatih Tüzün, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely insufficient validation of the URI scheme in Markdown links, allowing dangerous protocols such as file:// or shell: to be passed to the operating system's protocol handler.

Impact

An attacker could achieve remote code execution on the victim's machine, but only after the user opens a crafted file and Ctrl+clicks a link.

What the attacker needed

Modern Store-based Notepad before 11.2510; Victim opens a crafted Markdown file; Victim Ctrl+clicks the link

The fix

The vulnerability was fixed by updating Notepad to version 11.2510 or later.

How it was found

  1. The user opens the crafted Markdown file in Notepad.
  2. The Markdown renderer turns the link into a clickable object.
  3. The user Ctrl+clicks the link.
  4. Because sanitisation is missing, the system follows the file:// protocol and runs a binary instead of opening a browser.

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 write-up has not been written yet. The Original tab links to the source.

Notepad used to show only plain text, but the new version can display Markdown, a simple formatting language where links look like [text](address). The app checked the link text but not the kind of address, so a link could point to a local file or a program instead of a website. If a user opened a malicious file and clicked the link, the computer could run that program.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.