CVE-2024-58379 nodemailer before 6.9.9 ReDoS via attachDataUrls parameter
Attackers can cause a denial of service in nodemailer by sending crafted emails when the attachDataUrls parameter is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58379?
CVE-2024-58379 is a medium-severity denial of service vulnerability in nodemailer, published on 31 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
nodemailer before 6.9.9 contains a regular expression denial of service vulnerability in email parsing when attachDataUrls parameter is set or processing embedded file attachments. Attackers can send specially crafted emails with malicious data URLs or embedded attachments to cause the event loop to hang and deny service.
Weakness: CWE-1333
Which versions are affected by CVE-2024-58379?
2 open source packages ship an affected version, including nodemailer.
| Package | Affected | Fixed in |
|---|---|---|
nodemailer npm | All versions | 6.9.9 |
nodemailer npm | All versions | 6.9.9 |
How do I fix CVE-2024-58379?
Upgrade nodemailer to 6.9.9 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-58379 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58379 exists.
Sources
Also known as DEBIAN-CVE-2024-58379, GHSA-7mr3-4pph-3qpg, GHSA-9h6g-pr28-7cqp, UBUNTU-CVE-2024-58379.