CVE-2024-58379

nodemailer before 6.9.9 ReDoS via attachDataUrls parameter

Published Aug 31, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Nodemailer versions earlier than 6.9.9 contain a regular expression denial of service condition in the email parsing logic when the attachDataUrls option is enabled or when processing embedded file attachments that contain data URLs. A crafted email containing malicious data URLs or specially formatted attachments can trigger exponential backtracking in the regex engine, causing the event loop to block indefinitely and resulting in a denial of service. The vulnerability is classified as CWE‑1333 and is limited to service availability; it does not directly lead to unauthorized data disclosure or code execution.

Affected Systems

The affected product is the Nodemailer library for all platforms where it is used as an e‑mail transport. Any installation that relies on a Nodemailer version prior to 6.9.9 is susceptible to the vulnerability, regardless of the host operating system.

Risk and Exploitability

The CVSS score of 6.9 indicates medium severity. No specific privileges are mentioned in the CVE description; the analysis infers that the attacker does not need elevated privileges, but this conclusion is not explicitly stated by the vendor. The exploit requires only that the vulnerable system process crafted e‑mail content, so its success depends on how the mail transport receives external input. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. In environments where Nodemailer parses untrusted e‑mail data, an attacker could cause sustained blocking of the event loop, potentially degrading or halting other services that run in the same Node.js process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nodemailer to version 6.9.9 or later.
  • If an upgrade cannot be performed immediately, disable the attachDataUrls option or validate and sanitize data URLs before they reach the parser.
  • Implement strict resource limits or run the mail transport in a sandboxed environment to restrict the impact of a blocking event loop.

Generated by OpenCVE AI on August 31, 2026 at 10:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title nodemailer before 6.9.9 ReDoS via attachDataUrls parameter
First Time appeared Nodemailer
Nodemailer nodemailer
Weaknesses CWE-1333
CPEs cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*
Vendors & Products Nodemailer
Nodemailer nodemailer
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 31, 2026, 11:02 AM
Reserved
Aug 16, 2026, 1:02 PM
Status
Awaiting Analysis
Published
Aug 31, 2026, 9:16 AM
Modified
Oct 27, 2026, 11:10 PM
Severity
Moderate
Public date
Aug 31, 2026, 8:46 AM