CVE-2017-16072: Hijacked Environment Variables in nodemailer.js

nodemailer.js Updated 02 Oct 2025

Summary

29/08/2018
No i
High
7.5

CVE-2017-16072: nodemailer.js is malware. Affects nodemailer.js versions < 1.0.2. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

nodemailer.js is a package used for sending emails in Node.js applications. It provides a simple and convenient API for sending emails using various transport methods. However, all versions of nodemailer.js have been found to contain malware that steals environment variables and sends them to attacker-controlled locations.

Vulnerability Detail

The vulnerability in nodemailer.js allows an attacker to hijack environment variables, which can contain sensitive information such as credentials and tokens. The malware within the package collects these variables and sends them to the attacker's servers. This can lead to unauthorized access to sensitive systems and data. The issue has been identified as CWE-506.

How To Fix

No fixed version is published for this vulnerability.

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

Workaround

There is no specific workaround for this vulnerability. It is crucial to remove the infected package and take the necessary steps to secure your environment.

Conclusion

The nodemailer.js package has been found to contain malware that hijacks environment variables and sends them to attacker-controlled locations. It is crucial to remove the infected package, secure your environment, and regenerate any exposed credentials. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for nodemailer.js →

Share this vulnerability

FAQ

The malware within nodemailer.js collects environment variables, which can contain sensitive information, and sends them to the attacker's controlled locations.

The consequences of this vulnerability include unauthorized access to sensitive systems and data, potential exposure of credentials and tokens, and the risk of further compromise of the affected environment.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes your package-lock.json file and provides real-time alerts for open-source vulnerabilities.

No, the only way to mitigate the risk is to remove the infected nodemailer.js package and take the necessary steps to secure your environment.

If you find nodemailer.js installed in your environment, you should immediately delete the package, clear your npm cache, ensure it is not present in any other package.json files, and regenerate any sensitive credentials that may have been exposed.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

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