Intel

AIKIDO-2024-10079

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

CVE-2024-58379Published May 2, 2024
May 2, 2024

50

CVE Score

Medium

Regular Expression Denial of Service (ReDoS)

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.

How do I fix this?

Upgrade the nodemailer library to the patch version.

Who does this affect?

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

Package

Versions

3.0.0 - 6.9.8

Fixed in 6.9.9

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea