CVE-2022-42967
CWE-79Published: January 11, 2023· Updated: Jun 17, 2026
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.
Risk Analysis
Caret is vulnerable to a cross-site scripting (XSS) attack that triggers when a user opens a specially crafted Markdown file with preview mode enabled. This can lead to arbitrary client-side code execution. The high CVSS score underscores the critical impact on user security.
There is no known public exploit for this issue, and it is not included in the CISA KEV. The vulnerability is remotely exploitable.
Users should avoid opening untrusted Markdown files in Caret and ensure the software is updated to the latest version.
Technical Analysis
CVE-2022-42967 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation does not require any privileges, though user interaction (Required) is needed, which slightly reduces the risk of mass automated attacks.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.6.
The vulnerability has a "Changed" scope, meaning successful exploitation can impact components beyond the vulnerable component itself — such as the host operating system or adjacent services.
From a weakness classification perspective (CWE-79): Cross-site scripting (XSS) vulnerabilities allow attackers to inject malicious scripts into web pages viewed by other users.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (2)
Quick Facts
Related CVEs (CWE-79)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2022-42967 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts