CVE-2022-21158 Cross-site scripting in MarkText
Attackers can execute arbitrary scripts on user machines via malicious links in MarkText documents, requiring an upgrade to secure the application.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-21158?
CVE-2022-21158 is a medium-severity cross-site scripting vulnerability in MarkText, published on 7 Mar 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2022-21158?
It affects 1 product.
Products include Marktext Marktext.
How do I fix CVE-2022-21158?
No fix has been published for CVE-2022-21158 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-2022-21158 being exploited?
There is no known exploitation of CVE-2022-21158 in the wild and no public exploit code.
Other vulnerabilities in MarkText
Sources
Also known as GHSA-xfpv-q4q6-7j43.