Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Mermaid diagram file
-
DeliveryDeliver to victim via social engineering
-
ExploitVictim opens file in vulnerable Typora
-
ExecutionMermaid engine processes unsanitized classDef/style
-
PersistJavaScript payload executes in Electron renderer context
-
ImpactAttacker achieves client-side code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the victim is running Typora version 1.13.8 or earlier (stable) or 1.14.6 or earlier (beta/pre-release) and opens or previews a file containing a Mermaid diagram block with attacker-controlled |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects the realistic constrained impact: network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), but passive user interaction required (UI:P) and limited integrity-only vulnerable-system impact (VI:L, VC:N). The E:P supplemental flag in the provided CVSS 4.0 vector confirms a publicly available proof-of-concept (corroborated by the GitHub reference), which elevates real-world exploitability above theoretical. There is no CISA KEV listing, so mass active exploitation is not confirmed. The combination of a public POC, a socially engineerable delivery mechanism (shared Typora files), and an Electron host environment where XSS may have elevated local privileges makes this a genuine medium-priority issue for organizations where Typora is deployed - not merely an academic CVSS score. CVSS 3.1 equivalent would score slightly higher (~6.1) due to scope-change treatment of XSS in an Electron context. |
| Exploit ScenarioDerived | An attacker crafts a Typora markdown file containing a Mermaid diagram block with a malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 31, 2026
Cross-site scripting in Typora's embedded Mermaid rendering engine allows remote attackers to inject and execute arbitrary JavaScript by manipulating the classDef or style arguments within Mermaid diagram syntax. Affected versions include all Typora releases up to 1.13.8 and 1.14.6; a publicly available proof-of-concept exploit exists on GitHub. Exploitation requires passive user interaction (opening or previewing a crafted file), and no authentication is needed from the attacker, making social-engineering delivery via shared documents or email a realistic threat vector. No active exploitation is confirmed in CISA KEV at time of analysis.
RemediationAI
Upgrade Typora to version 1.14.8 or later, which is confirmed by the vendor as resolving this issue; the patched release is available at https://typora.io/releases/all and https://typora.io/#download. As a compensating control while upgrade is pending, users should avoid opening or previewing Typora files received from untrusted sources, since exploitation requires the victim to render a crafted Mermaid diagram. If Mermaid rendering is configurable in Typora preferences, disabling it entirely eliminates the attack surface at the cost of losing diagram functionality. There is no indication that network-level blocking can prevent exploitation, as the vulnerability is triggered by file content rather than a network service.
Affected VersionsENISA
Affected Packages
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
Typora is an Electron-based desktop markdown editor that embeds the Mermaid diagramming library to render flowcharts, sequence diagrams, and other graph types inline. Mermaid's classDef and style directives allow users to define CSS styling for diagram nodes; the vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) arises when user-supplied values in these directives are not sanitized before being inserted into the rendered HTML/SVG context. Because Typora runs in an Electron shell, XSS occurring within the renderer process may have access to Node.js APIs or local filesystem resources beyond a typical browser sandbox, depending on Electron's nodeIntegration settings. The CPE string (cpe:2.3:a:n/a:typora:*:*:*:*:*:*:*:*) uses 'n/a' as the vendor field, which is common for independent developers without a registered NVD vendor entry.
Know when Typora 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-delivered XSS via crafted file; user must open file (UI:R); Electron context warrants scope change with low C and I impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was found in Typora up to 1.13.8/1.14.6. This vulnerability affects unknown code of the component Mermaid Rendering Engine. The manipulation of the argument classDef/style results in cross site scripting. The attack may be launched remotely. The exploit has been made public and could be used. Upgrading to version 1.14.8 is able to resolve this issue. You should upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
DOM-based XSS in updater/update.html in Typora before 1.6.7 on Windows and Linux allows a crafted markdown file to run a
A vulnerability, which was classified as critical, was found in Typora up to 1.5.5 on Windows. Rated high severity (CVSS
Typora 0.9.9.21.1 (1913) allows arbitrary code execution via a modified file: URL syntax in the HREF attribute of an ARE
Typora 0.9.9.24.6 on macOS allows directory traversal, for execution of arbitrary programs, via a file:/// or ../ substr
Improper path handling in Typora before 1.6.7 on Windows and Linux allows a crafted webpage to access local files and ex
Typora v1.0.0 through v1.7 version (below) Markdown editor has a cross-site scripting (XSS) vulnerability, which allows
Improper path handling in Typora before 1.7.0-dev on Windows and Linux allows a crafted webpage to access local files an
Typora through 1.3.8 allows XSS if a document containing an SVG element with an attacker-controlled onload attribute is
An issue in Typora v.1.8.10 and before, allows a local attacker to obtain sensitive information and execute arbitrary co
Cross Site Scripting (XSS) vulnerability in Typora v.1.6.7 and before, allows a local attacker to obtain sensitive infor
A cross site scripting (XSS) vulnerability in the Markdown Editor component of Typora v1.6.7 allows attackers to execute
typora through 0.9.64 has XSS, with resultant remote command execution, during inline rendering of a mathematical formul
EUVD-2026-68614
GHSA-m8rm-322m-r9gv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB