CVE-2022-41709 Markdownify subject to Remote Code Execution via malicious markdown file
Remote attackers can execute arbitrary code on clients viewing malicious markdown files due to enabled nodeIntegration 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-41709?
CVE-2022-41709 is a high-severity code injection vulnerability in Markdownify, published on 19 Oct 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 execute arbitrary code remotely on any client attempting to view a malicious markdown file through Markdownify. This is possible because the application has the "nodeIntegration" option enabled.
Weakness: CWE-829
Which versions are affected by CVE-2022-41709?
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-41709?
No fix has been published for CVE-2022-41709 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-41709 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41709 exists.
Other vulnerabilities in Markdownify
Sources
Also known as GHSA-c942-mfmp-p4fh.