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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodemailer | nodemailer | < 6.9.9 | 6.9.9 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-nodemailer | 6.9.13+~6.4.14-1 | — |
| Debian 13 | node-nodemailer | 6.9.13+~6.4.14-1 | — |
| Debian 12 | node-nodemailer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 22.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 20.04 LTS | node-nodemailer | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nodemailer | < 6.9.9 | 6.9.9 | GHSA-9h6g-pr28-7cqp |
References
- GitHub Security Advisory (GHSA-9h6g-pr28-7cqp) vendor-advisory
- VulnCheck Advisory: nodemailer before 6.9.9 ReDoS via attachDataUrls parameter third-party-advisory