CVE-2025-14874: Nodemailer Denial of Service via Uncontrolled Recursion

nodemailer Updated 19 Dec 2025

Summary

18/12/2025
Yes i
Moderate
5.3

CVE-2025-14874: Nodemailer is vulnerable to DoS through Uncontrolled Recursion. Affects nodemailer versions < 7.0.11. Fixed in 7.0.11. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Nodemailer is a popular module for Node.js applications that allows users to send emails easily. It supports various transport methods and provides a simple API for composing and sending messages. However, a recent vulnerability has been identified that can lead to denial of service (DoS) when processing certain email address headers.

Vulnerability Detail

A flaw was discovered in Nodemailer that allows attackers to craft a malicious email address header. This header triggers infinite recursion in the address parser, leading to a denial of service (DoS) condition. The vulnerability arises from improper handling of specific input, which can cause the application to crash or become unresponsive, impacting the availability of services relying on Nodemailer.

How To Fix

Latest published version: 10.2.1 as of 22 Oct 2026

npm install nodemailer@10.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.11

This is the first release that contains the fix.

npm install nodemailer@7.0.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement input validation to sanitize email address headers before processing them. This can help mitigate the risk of triggering the infinite recursion issue.

Conclusion

The vulnerability identified as CVE-2025-14874 in Nodemailer poses a significant risk of denial of service through uncontrolled recursion triggered by malformed email address headers. It is crucial to update to version 7.0.11 or later to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and manage vulnerabilities in your applications effectively.

See every vulnerability recorded for nodemailer →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 5.3, indicating a moderate severity level.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.

All versions of Nodemailer prior to 7.0.11 are affected by this vulnerability.

The primary impact is a denial of service (DoS), which can cause your application to crash or become unresponsive, affecting user experience and service availability.

Yes, you can implement input validation to sanitize email address headers as a temporary measure until you can update to the patched version.

Related vulnerabilities

Recent vulnerabilities recorded for nodemailer.

How To Fix

Latest published version: 10.2.1 as of 22 Oct 2026

npm install nodemailer@10.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.11

This is the first release that contains the fix.

npm install nodemailer@7.0.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback