Intel

AIKIDO-2024-10079

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

Regular Expression Denial of Service (ReDoS)CVE-2024-58379 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.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform