Command execution via unsanitized Mermaid styles
Published Aug 31, 2026 · Updated Aug 31, 2026
Cross-site scripting in Typora 1.13.0 through 1.13.8 and 1.14.0 through 1.14.6 allows attackers to execute commands via crafted Markdown. Mermaid style values accept a closing style tag and are concatenated into CSS written through innerHTML without encoding; loose rendering skips final sanitization. Opening the malicious file triggers injected JavaScript, which can reach the exposed Node.js require function and launch child processes.
Summary
What happened
Cross-site scripting in Typora 1.13.0 through 1.13.8 and 1.14.0 through 1.14.6 allows attackers to execute commands via crafted Markdown. Mermaid style values accept a closing style tag and are concatenated into CSS written through innerHTML without encoding; loose rendering skips final sanitization. Opening the malicious file triggers injected JavaScript, which can reach the exposed Node.js require function and launch child processes.
The record
- CVE
- CVE-2026-82805
- Published
- Aug 31, 2026
- Updated
- Aug 31, 2026
- Vendor
- Qiyun (Shanghai) Technology Ltd.
- Product
- Typora
- Classifications
- CWE-94, CWE-79, T1059.007, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 31, 2026CVE publishedPublication date reported by the CVE source.
- Aug 31, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.13.0
- Affected versionversion=1.13.1
- Affected versionversion=1.13.2
- Affected versionversion=1.13.3
- Affected versionversion=1.13.4
- Affected versionversion=1.13.5
- Affected versionversion=1.13.6
- Affected versionversion=1.13.7
- Affected versionversion=1.13.8
- Affected versionversion=1.14.0
- Affected versionversion=1.14.1
- Affected versionversion=1.14.2
- Affected versionversion=1.14.3
- Affected versionversion=1.14.4
- Affected versionversion=1.14.5
- Affected versionversion=1.14.6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Typora Mermaid style injection proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo