Skip to navigation

Threat reportVulnerabilityTL-2026-1549

CVE-2026-20841: Command Injection in Windows Notepad Markdown Link Handling Enables Arbitrary Code Execution

highPATCHED

Windows Notepad's Markdown rendering feature insufficiently validates link URIs before passing them to the system shell (ShellExecuteExW), allowing attackers to craft malicious .md files whose embedded links invoke dangerous protocol handlers such as file:// and ms-appinstaller:// to execute arbitrary local or remote payloads when a victim clicks (or Ctrl-clicks) the rendered link.

Key facts

IdentifiersTL-2026-1549, CVE-2026-20841
SeverityHIGH
CVSS7.8 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Exploitation statusPublic proof-of-concept exploit for a linked CVE
EPSSCVE-2026-20841: 9.0% (95.1th percentile)
Affected productsMicrosoft Windows Notepad (Microsoft Store / modern app)
Weaknesses (CWE)CWE-77
MalwareGeneric protocol-handler dropper (delivery-stage, no specific malware family attributed)
Tools404godd/CVE-2026-20841-PoC, BTtea/CVE-2026-20841-PoC, dogukankurnaz/CVE-2026-20841-PoC, hackfaiz/CVE-2026-20841-PoC
MITRE ATT&CK techniquesT1036.005 Match Legitimate Resource Name or Location, T1059 Command and Scripting Interpreter, T1071.001 Web Protocols, T1105 Ingress Tool Transfer, T1127 Trusted Developer Utilities Proxy Execution, T1140 Deobfuscate/Decode Files or Information, T1203 Exploitation for Client Execution, T1204 User Execution, T1204.001 Malicious Link, T1204.002 Malicious File, T1218.007 Msiexec, T1499 Endpoint Denial of Service and 6 more in the attack flow
MotivationUNKNOWN
Target sectorsall sectors using windows 11, enterprise, government administration, education, health, finance, technology
Target regionsGlobal
Detection rules9 (1 shown free)
Sources14 cited sources

Detection coverage

As of 2026-02-19, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1549 across Splunk SPL, Microsoft KQL and Sigma, covering 20 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Notepad.exe ShellExecute of Non-HTTP(S) URI Scheme (CVE-2026-20841 Exploitation)

Detects the modern (Microsoft Store) Windows Notepad process invoking ShellExecuteExW / spawning a shell with a command line referencing a non-http(s) URI scheme such as file:// or ms-appinstaller://, the core exploitation primitive for CVE-2026-20841 where a rendered Markdown link is clicked/Ctrl-clicked.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1204.001, T1203, T1566.002
  • Data sources: sysmon, windows_security, edr_process_telemetry
  • Severity: high
  • Confidence: high

Splunk SPL

index=endpoint sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
| eval parent_is_notepad=if(match(lower(ParentImage), "\\\\notepad\.exe$"), 1, 0)
| where parent_is_notepad=1
| regex CommandLine="(?i)(file:(\/|\\\\){2,4}|ms-appinstaller:(\/|\\\\){2})"
| table _time, ComputerName, User, ParentImage, Image, CommandLine, ProcessId, ParentProcessId
| sort -_time

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName =~ "notepad.exe"
| where ProcessCommandLine matches regex @"(?i)(file:(/|\\){2,4}|ms-appinstaller:(/|\\){2})"
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, ProcessId
| order by Timestamp desc

Sigma

title: Windows Notepad Proxying Non-HTTP(S) URI via ShellExecute
id: 8f1c9e2a-6b3d-4a11-9f2e-cve202620841win
status: experimental
description: Detects modern Windows Notepad (Microsoft Store) invoking ShellExecuteExW / spawning a process with a command line referencing a non-http(s) URI scheme (file://, ms-appinstaller://), consistent with CVE-2026-20841 exploitation via a clicked Markdown link.
references:
    - https://www.thezdi.com/blog/2026/2/19/cve-2026-20841-arbitrary-code-execution-in-the-windows-notepad
    - https://msrc.microsoft.com/update-guide/en-US/advisory/CVE-2026-20841
author: Threadlinqs Team
date: 2026-07-19
tags:
    - attack.initial-access
    - attack.t1566.002
    - attack.execution
    - attack.t1204.001
    - attack.t1203
    - cve.2026.20841
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith: '\notepad.exe'
    selection_scheme:
        CommandLine|contains:
            - 'file://'
            - 'ms-appinstaller://'
    condition: selection_parent and selection_scheme
    fields:
        - ParentImage
        - Image
        - CommandLine
falsepositives:
    - Legitimate use is expected to be rare; validate against patched-build (11.2510+) warn-and-allow interstitial acceptance events
level: high

Known false positives:

  • Legitimate enterprise use of ms-appinstaller:// for approved MSIX app deployment triggered independently of Notepad
  • Third-party Markdown viewers reusing the notepad.exe process name in non-standard deployments

Tuning notes: Baseline normal Notepad child-process behavior in the environment (should be near-zero); tighten by excluding hosts already confirmed on patched build 11.2510+ where the warn-and-allow interstitial has been accepted intentionally by trusted admin accounts.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Notepad Rendering Malicious Markdown Link Syntax Prior to Shell Execution · unlock with TL Creds
  • Microsoft Store Notepad Executing Deobfuscated/Decoded Content Post Markdown Link Click · unlock with TL Creds
  • Outbound Beaconing from Process Chain Rooted in Notepad Markdown Exploitation · unlock with TL Creds
  • Ctrl-Click/Click Activation on Rendered Markdown Hyperlink Followed by ShellExecute (Exploitation Trigger) · unlock with TL Creds
  • MSIX/AppX Sideload Execution from Untrusted App Installer Package (Post-Exploitation Persistence) · unlock with TL Creds
  • Endpoint Instability/Resource Exhaustion Following Malformed Markdown Protocol-Handler Chain (Impact) · unlock with TL Creds
  • Notepad.exe Spawning AppInstaller / Unexpected Child Process (Post-Exploitation MSIX Delivery) · unlock with TL Creds
  • MSIX App Installer Protocol Invocation Correlated with Recent Markdown File Open (C2/Payload Retrieval) · unlock with TL Creds

Indicators of compromise

As of 2026-02-19, Threadlinqs Intelligence tracks 20 indicators of compromise for TL-2026-1549.

20 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Five verified public PoC exploits exist on GitHub; Microsoft patched the flaw in the February 10, 2026 Patch Tuesday release (build 11.2510).

CVE-2026-20841 is a local command-injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command) in the modern Windows Notepad application (Microsoft Store package), which gained Markdown rendering and editing support in 2025. When Notepad detects a file with a .md extension via fixed string comparison, it tokenizes the file content for Markdown rendering, including hyperlink syntax such as [text](target). The link-click handler (identified in ZDI's binary analysis as sub_140170F60 in Notepad.exe) passes the link target directly to the Windows shell for execution without adequately filtering or validating the URI scheme. This allows an attacker to embed links using non-http(s) protocol handlers -- most notably file:// (direct local file execution) and ms-appinstaller:// (Windows App Installer protocol, historically abused as an initial-access vector by ransomware affiliates such as Storm-0569/BATLOADER) -- inside a seemingly benign Markdown text file. Because Markdown files are widely perceived by end users as inert plain text, victims exhibit low suspicion when opening .md attachments, and Notepad's rendering silently converts the file into an interactive execution surface the moment a link is clicked or Ctrl-clicked. Microsoft's official advisory states: "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 remote files." Exploitation requires user interaction (opening the crafted .md file and clicking the link) and executes in the context of the logged-on user -- no privilege escalation or sandbox escape is required for the initial code-execution primitive, though follow-on payloads (e.g., an MSIX package delivered via ms-appinstaller://) can themselves carry further capability. The vulnerability affects the Microsoft Store ("modern"/UWP-packaged) build of Notepad versions 11.0.0 through 11.2509; it does not affect the legacy Win32 notepad.exe, which lacks Markdown rendering. Microsoft remediated the issue in the February 10, 2026 update (build 11.2510) by adding an interstitial "This link may be unsafe" warning for non-http/https link schemes -- a warn-and-allow mitigation rather than an outright block, meaning a sufficiently social-engineered victim can still click through and trigger execution even on patched builds. The flaw was discovered and reported by independent researchers Cristian Papa and Alasdair Gorniak (credited by Delta Obscura / community writeups), with additional bug-hunting credit to a researcher known as "Chen"; technical root-cause analysis and the detection regexes referenced in this report were published by Nikolai Skliarenko and Yazhi Wang of Trend Micro's Zero Day Initiative (ZDI) research team. Multiple independent proof-of-concept repositories were published to GitHub within days of disclosure (BTtea, dogukankurnaz, 404godd, hackfaiz, and others), demonstrating both remote-payload-installation (via ms-appinstaller://) and local-executable-invocation (via file://) attack vectors, keeping exploit maturity and reproducibility high even though no in-the-wild active exploitation had been publicly confirmed as of the disclosure window.

MITRE ATT&CK techniques by tactic:

Defense Evasion

T1036.005 Match Legitimate Resource Name or Location; T1127 Trusted Developer Utilities Proxy Execution; T1140 Deobfuscate/Decode Files or Information; T1218.007 Msiexec

Execution

T1059 Command and Scripting Interpreter; T1203 Exploitation for Client Execution; T1204 User Execution; T1204.001 Malicious Link; T1204.002 Malicious File

Command and Control

T1071.001 Web Protocols; T1105 Ingress Tool Transfer

Impact

T1499 Endpoint Denial of Service

Persistence

T1546.003 Windows Management Instrumentation Event Subscription

Initial Access

T1566 Phishing; T1566.001 Spearphishing Attachment; T1566.002 Spearphishing Link

Resource Development

T1587.004 Exploits; T1588.005 Exploits

Remediation

Patches

  • Windows Notepad (Microsoft Store) build 11.2510 -- released February 10, 2026 Patch Tuesday cycle; adds 'This link may be unsafe' interstitial warning for non-http/https link schemes

Immediate actions

  • Update Windows Notepad (Microsoft Store app) to build 11.2510 or later via Microsoft Store, enabling automatic app updates if not already enabled
  • Educate users that .md/Markdown files are not inherently safe and that clicking embedded links -- especially non-http(s) links -- can trigger code execution
  • Block or alert on file downloads/emails delivering .md attachments from untrusted or external senders at the email/web gateway
  • Restrict or monitor invocation of the ms-appinstaller:// protocol handler at the endpoint level given its history of abuse as an initial-access vector

Workarounds

  • Do not click or Ctrl+click hyperlinks rendered inside .md files opened in Notepad from untrusted sources prior to updating
  • Open untrusted Markdown files in a plain-text viewer or sandboxed VM instead of the modern Notepad app
  • Disable or restrict the ms-appinstaller:// and other non-essential custom URI protocol handlers via Group Policy / registry where feasible

Longer-term hardening

  • Deploy EDR rules to flag Notepad.exe (modern/Store variant) spawning child processes or invoking ShellExecute on non-http(s) URI schemes
  • Apply application control (WDAC/AppLocker) policies restricting execution of MSIX/AppX packages from non-trusted publishers via App Installer
  • Implement network/endpoint detection for outbound App Installer (ms-appinstaller) protocol invocations correlated with recent Markdown file opens
  • Maintain a patch-compliance baseline for Microsoft Store-distributed applications, not just traditional Win32 software, given they can silently reintroduce attack surface

Affected and fixed versions

  • Microsoft — Windows Notepad (Microsoft Store / modern app)
    Vulnerable versions: 11.0.0; 11.2508; 11.2509
    Fixed in: 11.2510 and later

Timeline

  • Microsoft adds Markdown rendering and editing support to the modern Windows Notepad app, introducing the underlying attack surface later exploited by CVE-2026-20841.
  • Vulnerability privately reported to Microsoft by researchers Cristian Papa and Alasdair Gorniak (credited alongside researcher 'Chen') via responsible disclosure.
  • Microsoft ships the fix for CVE-2026-20841 in Windows Notepad build 11.2510 as part of the February 2026 Patch Tuesday cycle, adding an 'unsafe link' warning for non-http/https URIs.
  • SOC Prime publishes coverage of CVE-2026-20841, confirming CVSS 8.8/Important classification and detailing the fixed build.
  • Help Net Security publishes analysis of the vulnerability, noting Microsoft's mitigation approach and researcher credits; story trends on Hacker News.
  • ThreatLocker publishes blog analysis explaining the Markdown risk and providing guidance for endpoint protection customers.
  • Mallory.ai vulnerability intelligence platform publishes independent CVSS v3.1 scoring (7.8) and EPSS scoring (11.7%, 96th percentile) along with CWE-77 classification.
  • Zero Day Initiative (ZDI) publishes deep technical root-cause analysis by Nikolai Skliarenko and Yazhi Wang, including the vulnerable function (sub_140170F60) and detection regex patterns for file:// and ms-appinstaller:// abuse.
  • Multiple independent proof-of-concept repositories (BTtea/CVE-2026-20841-PoC, dogukankurnaz/CVE-2026-20841-PoC) published to GitHub demonstrating remote-payload and local-file execution vectors.
  • Additional PoC repositories (404godd/CVE-2026-20841-PoC, hackfaiz/CVE-2026-20841-PoC) published, further increasing exploit reproducibility; Penligent publishes multi-part hacking-labs technical writeup series.

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 14 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats