Malicious Code Vulnerability in nodemailer-utils: A Critical Security Threat

nodemailer-utils Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6642: Malicious code in nodemailer-utils (npm). Affects nodemailer-utils versions 1.0.0. No fix is published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

nodemailer-utils is a utility package designed to enhance the functionality of the Nodemailer library, which is widely used for sending emails in Node.js applications. This package provides various helper functions that streamline email composition and management. However, it has been identified to contain malicious code that can compromise the security of applications utilizing this package.

Vulnerability Detail

The vulnerability identified as MAL-2025-6642 originates from a malicious code injection in version 1.0.0 of the nodemailer-utils package. This code can potentially allow attackers to execute arbitrary commands or access sensitive data within applications that depend on this package. The ramifications of this vulnerability can be severe, leading to data breaches, unauthorized access, and the potential for further exploitation within the affected systems.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall nodemailer-utils

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can remove the nodemailer-utils package from your project. If you need similar functionality, consider using alternative libraries that do not have known vulnerabilities. You can remove the package using the following command in your terminal:

npm uninstall nodemailer-utils

Conclusion

The discovery of the MAL-2025-6642 vulnerability in the nodemailer-utils package highlights the importance of maintaining secure coding practices and regularly monitoring dependencies for vulnerabilities. Users are advised to take immediate action to mitigate risks associated with this malicious code.

See every vulnerability recorded for nodemailer-utils →

Share this vulnerability

FAQ

nodemailer-utils is a utility package that enhances the Nodemailer library, providing various helper functions for email management in Node.js applications.

The MAL-2025-6642 vulnerability involves malicious code that can compromise the security of applications using the nodemailer-utils package, potentially allowing unauthorized access and data breaches.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected without any signup.

Currently, there is no patched version available for nodemailer-utils. Users should keep an eye on the package repository for any updates.

If you are using nodemailer-utils, it is recommended to uninstall the package until a secure version is released. Consider using alternative libraries for email management.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall nodemailer-utils

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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