CVE-2022-41710 Markdownify has Files or Directories Accessible to External Parties
An attacker can read arbitrary local files on a client by tricking them into viewing a malicious markdown file in Markdownify.
- 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-2022-41710?
CVE-2022-41710 is a medium-severity path traversal vulnerability in Markdownify, published on 3 Nov 2022. 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
Markdownify version 1.4.1 allows an external attacker to remotely obtain arbitrary local files on any client that attempts to view a malicious markdown file through Markdownify. This is possible because the application does not have a CSP policy (or at least not strict enough) and/or does not properly validate the contents of markdown files before rendering them.
Weakness: CWE-552
Which versions are affected by CVE-2022-41710?
2 open source packages ship an affected version, including electron-markdownify. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
electron-markdownify npm | All versions to 1.4.1 | None |
electron-markdownify npm | All versions to 1.4.1 | None |
Products include Markdownify Project Markdownify.
How do I fix CVE-2022-41710?
No fix has been published for CVE-2022-41710 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-41710 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41710 exists.
Other vulnerabilities in Markdownify
Sources
Also known as GHSA-qqhf-xfhw-7884.