Cross-site scripting in MarkText
Priority LOW 25CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-79.
Summary
A stored cross-site scripting vulnerability in marktext versions prior to v0.17.0 due to improper handling of the link (with javascript: scheme) inside the document may allow an attacker to execute an arbitrary script on the PC of the user using marktext.
Why it matters now
EPSS 0.00535 45th percentileScored 2026-11-07
Fix Fixed MarkText (MarkText): v0.17.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA MarkText (MarkText) Fixed in v0.17.0
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21158
- 2026-10-03 Alias added: GHSA-xfpv-q4q6-7j43
References
More Marktext vulnerabilities
- TI-2023-02174 MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution CVSS 3.1CRITICAL 9.6
- TI-2023-00951 MarkText WSH JScript code injection CVSS 3.1HIGH 7.8
- TI-2021-10612 Mark Text through 0.16.3 allows attackers arbitrary command execution. CVSS 3.1CRITICAL 9.6
- TI-2022-08820 Mark Text v0.16.3 was discovered to contain a DOM-based cross-site scripting (XSS)… CVSS 3.1CRITICAL 9.6
- TI-2020-16518 Mutation XSS exists in Mark Text through 0.16.2 that leads to Remote Code Execution. CVSS 3.1CRITICAL 9.6
- TI-2022-08068 MarkText through 0.16.3 does not sanitize the input of a mermaid block before rendering. CVSS 3.1CRITICAL 9.0
Sources
- CVE-2022-21158 · CVE Program
- CVE-2022-21158 · NVD
- FIRST EPSS
- GHSA-xfpv-q4q6-7j43 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences