CVE-2023-2318 MarkText DOM-Based Cross-site Scripting leading to Remote Code Execution
Attackers can execute arbitrary code by tricking users into pasting malicious text into MarkText, requiring an upgrade to secure the application.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-2318?
CVE-2023-2318 is a high-severity cross-site scripting vulnerability in MarkText, published on 19 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2023-2318?
It affects 1 product.
Products include Marktext Marktext.
How do I fix CVE-2023-2318?
No fix has been published for CVE-2023-2318 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-2318 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2318 exists.
Other vulnerabilities in MarkText
Sources
Also known as GHSA-jv63-mj7w-v6v9.