CVE-2022-42967 XSS in Caret markdown editor leads to remote code execution when viewing crafted Markdown files
Attackers can execute arbitrary code by tricking users into opening crafted Markdown files in Caret editor's preview mode.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-42967?
CVE-2022-42967 is a high-severity cross-site scripting vulnerability in careteditor caret, published on 11 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Caret is vulnerable to an XSS attack when the user opens a crafted Markdown file when preview mode is enabled. This directly leads to client-side code execution.
Weakness: CWE-79
Which versions are affected by CVE-2022-42967?
It affects 1 product.
Products include Caret Caret.
How do I fix CVE-2022-42967?
No fix has been published for CVE-2022-42967 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-42967 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-42967 exists.
Other vulnerabilities in careteditor caret
Sources
Also known as GHSA-9852-mg56-6j5x.