MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-79.
Summary
DOM-based XSS in src/muya/lib/contentState/pasteCtrl.js in MarkText 0.17.1 and before on Windows, Linux and macOS allows arbitrary JavaScript code to run in the context of MarkText main window. This vulnerability can be exploited if a user copies text from a malicious webpage and paste it into MarkText.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
No affected products listed by the sources yet.
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:* | up to 0.17.1 | Vulnerable | MarkText |
| cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Apple |
| cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Linux |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:marktext:marktext:*:*:*:*:*:*:*:* Versions up to 0.17.1 Vulnerable ·MarkText
- cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple
- cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Linux
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2023-2318
- 2026-10-03 Alias added: GHSA-jv63-mj7w-v6v9
References
More Marktext vulnerabilities
- 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
- TI-2022-05560 Cross-site scripting in MarkText CVSS 3.1MEDIUM 5.4
Sources
- CVE-2023-2318 · CVE Program
- CVE-2023-2318 · NVD
- FIRST EPSS
- GHSA-jv63-mj7w-v6v9 · 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