Skip to main content

Zettlr CVE-2026-137996

| EUVDEUVD-2026-137352 MEDIUM
Improper Input Validation (CWE-20)
2026-11-27 VulnCheck GHSA-5mgc-8qm6-cccw
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious Markdown document with non-http URI
  2. Exploit
    Victim opens note and Ctrl/Cmd-clicks link
  3. Execution
    shell.openExternal launches arbitrary scheme without allowlist
  4. Impact
    Outbound smb:// leaks NTLMv2 hash or invokes vulnerable handler

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Requires the victim to open an attacker-controlled Markdown document in Zettlr before 4.11.0 and then Ctrl/Cmd-click a link whose target uses a non-http(s) scheme (e.g. smb://, ms-msdt:, vscode:, steam:); makeValidUri passes any scheme://... through unchanged to shell.openExternal with no allowlist. Concrete prerequisites and limits: (1) user interaction is mandatory - the link must be modifier-clicked, so no silent/automatic trigger (UI:P); (2) the vector is local (AV:L) because the malicious document must be delivered and opened; (3) the high-value NTLMv2 credential-theft outcome is specific to Windows via smb://; (4) escalation beyond credential leakage to code execution requires a vulnerable or attacker-useful protocol handler to be registered on the victim's OS, so impact is environment-dependent. file:// is not exploitable for launching a planted executable because makeValidUri rewrites it to the internal safe-file:// scheme. No special configuration is otherwise needed - the missing allowlist affects default installations.

Impact

Signals point to a genuine but moderate-priority issue rather than an emergency. The supplied CVSS 4.0 vector (6.8) is Local (AV:L) and requires passive user interaction (UI:P) - the victim must open an attacker-supplied document and Ctrl/Cmd-click a crafted link - which caps real-world risk well below a remote-unauthenticated flaw despite PR:N. No CISA KEV entry and no EPSS score are present in the input, so there is no evidence of active or widespread exploitation; the vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a patch-this-cycle rather than drop-everything posture. A public PoC reference exists in the GHSA advisory (a one-line Markdown snippet), but it is not verified as working exploit code and must not be conflated with active exploitation. The headline impact (VC:H) reflects NTLMv2 hash theft via smb:// on Windows, which is realistic and relayable; the escalation to code execution is explicitly handler-dependent (e.g. a Follina-style ms-msdt: or a vulnerable custom scheme) and therefore environment-specific, not universal. Net: a legitimate control gap worth patching promptly, but the local vector plus required user interaction make it a targeted/opportunistic social-engineering risk rather than a mass-exploitation threat.

Exploit ScenarioDerived

An attacker shares or plants a Markdown note (routinely exchanged among Zettlr users) containing a link such as smb://attacker-host/share; when the victim opens the document and Ctrl/Cmd-clicks the link, Zettlr passes it to Electron's shell.openExternal with no scheme allowlist, triggering outbound SMB authentication that leaks the user's NTLMv2 hash on Windows. Substituting another registered scheme (ms-msdt:, a vulnerable custom app handler) invokes that handler with attacker-controlled parameters, enabling code execution where such a handler is present. A public PoC reference exists in the GHSA advisory but it is not verified as working exploit code; exploitation still requires the user to click the link (UI:P).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Zettlr before 4.11.0 forwards the href of a Ctrl/Cmd-clicked Markdown link to Electron's shell.openExternal without any scheme allowlist, so a crafted document can launch arbitrary registered protocol handlers on the victim's machine. On Windows an smb:// target triggers outbound SMB authentication that leaks the user's NTLMv2 hash, while schemes such as ms-msdt: or third-party app handlers are invoked with attacker-controlled parameters, with escalation beyond credential theft depending on which handlers are registered on the host. The victim must open the document and modifier-click the link (no silent trigger), a public proof-of-concept link is included in the advisory, and the vendor has released Zettlr 4.11.0 with a protocol allowlist and a confirmation prompt.

RemediationAI

Upgrade to Zettlr 4.11.0, which introduces the system.allowedURIProtocols setting (defaults to http: and https:) and prompts before following any other scheme; the fix commit is 77d8015ea437a355027a403532ebdad4bf1e4238 and the release is at https://github.com/Zettlr/Zettlr/releases/tag/v4.11.0, with details in GHSA-4c93-g77j-cx8w. Earlier builds have no configuration-only allowlist, so on versions before 4.11.0 the practical control is to avoid opening documents from untrusted sources and to avoid Ctrl/Cmd-clicking links whose scheme is not http(s). Note that the 'Always open links using ...' checkbox in 4.11.0 permanently whitelists a protocol and should not be ticked for schemes such as smb: or ms-msdt:. As a network-level compensation for the Windows NTLM path specifically, blocking outbound TCP 445 to untrusted networks prevents the smb:// credential leak at the cost of breaking access to remote SMB shares, but it does nothing about other registered handlers.

Affected VersionsENISA

Zettlr 0 <4.11.0

Affected Packages

euvd zettlr fix: 4.11.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Electron's shell.openExternal hands a URL to the operating system's registered protocol handlers, so without an allowlist any scheme that reaches it becomes a way to invoke other applications with attacker-chosen arguments. In Zettlr, click-listeners.ts passes a Ctrl/Cmd-clicked URL to openMarkdownLink, make-valid-uri.ts returns any scheme://... input unchanged (only file:// is rewritten, to the internal safe-file:// scheme that opens as a text document inside Zettlr rather than via shell.openPath), the renderer navigates to that URI, and the main process's will-navigate handler calls maybeOpenExternal, which invoked shell.openExternal unconditionally. The root cause is CWE-20 improper input validation, and the advisory additionally classifies it as CWE-939 (improper authorization in a handler for a custom URL scheme). Blast radius is bounded by the render context: the main window is sandbox: true and documents are edited in CodeMirror rather than rendered as live HTML, so this is a missing allowlist on the external-link path rather than XSS-to-RCE. Version 4.11.0 adds a system.allowedURIProtocols configuration defaulting to ['http:', 'https:'] and, for any other protocol, a modal naming the protocol with Cancel / Open link buttons plus an 'always open' checkbox that permanently whitelists the scheme. Separately, the same advisory notes that the fix for GHSA-qp9r-5xcv-35gx (command injection in custom export commands) remains incomplete because run-shell-command.ts still uses shell: true with hand-rolled single-quote wrapping around paths; that is a distinct issue from this CVE.

Know when Zettlr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.1 MEDIUM

A locally delivered document must be opened and a link clicked, so AV:L and UI:R; NTLM hash disclosure gives C:H, handler parameter abuse gives I:L, no direct availability impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche open-source Markdown note editor, limited enterprise deployment footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy