Intel

AIKIDO-2024-10079

nodemailer is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 2, 2024

50

Medium Risk

This Affects:

JSnodemailer
3.0.0 - 6.9.8
Fixed in 6.9.9
Are you affected? Scan for Free

TL;DR

The affected versions are vulnerable to regular expression Denial of Service (ReDoS), causing the event loop to become stuck. This occurs when nodemailer attempts to parse image files with the attachDataUrls parameter set or when parsing attachments with embedded files. A specially crafted malicious email can exploit this vulnerability, leading to performance degradation or Denial of Service.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

nodemailer is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 3.0.0 - 6.9.8.

How to fix this

Upgrade the nodemailer library to the patch version.