Read the docs
TI-2022-05560 Aliases CVE-2022-21158GHSA-xfpv-q4q6-7j43

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

VendorProductAffected versionsFixed inStatusSource
MarkTextMarkTextbefore v0.17.0v0.17.0Patch availableCNA
  • MarkText VendorMarkText Affected before v0.17.0 Fixed in v0.17.0 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:*before 0.17.0VulnerableMarkText
  • cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:* Versions before 0.17.0 Vulnerable ·MarkText

Remediation

  • Fix · CNA MarkText (MarkText) Fixed in v0.17.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-21158
  2. 2026-10-03 Alias added: GHSA-xfpv-q4q6-7j43

References

  • 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