CVE-2017-16057: Hijacked Environment Variables in nodemssql

nodemssql Updated 02 Oct 2025

Summary

09/11/2018
No i
High
7.5

CVE-2017-16057: nodemssql is malware. Affects nodemssql 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The nodemssql package is a popular npm package used for interacting with Microsoft SQL Server databases in Node.js applications. It provides a convenient interface for executing SQL queries and managing database connections. However, all versions of this package have been found to contain malware that steals environment variables and sends them to attacker-controlled locations.

Vulnerability Detail

The vulnerability in nodemssql allows an attacker to hijack environment variables, which can contain sensitive information such as database credentials, API keys, and other sensitive data. The malware within the package is designed to collect these environment variables and send them to the attacker's servers. This can lead to unauthorized access to databases and other systems, potentially resulting in data breaches and other security incidents.

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. The best course of action is to follow the recommended steps for fixing the vulnerability.

Conclusion

The nodemssql package has been found to contain malware that steals environment variables. If you have this package installed in your environment, it is crucial to take immediate action to remove it, clear your npm cache, and regenerate any exposed credentials. Additionally, it is recommended to review the security practices of package maintainers and consider using security tools like Vulert to proactively monitor for vulnerabilities in your software.

See every vulnerability recorded for nodemssql →

Share this vulnerability

FAQ

You can check if nodemssql is installed in your environment by running the command npm ls nodemssql in your project directory. If it is installed, it will be listed in the output.

The exact method of how the malware was injected into the nodemssql package is unknown. It is possible that the package was compromised by an attacker who gained unauthorized access to the package maintainer's account or the package's source code repository.

If you find nodemssql 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.

The trustworthiness of other packages from the same maintainer cannot be determined solely based on the presence of malware in the nodemssql package. It is recommended to review the security practices and history of the maintainer before using their other packages.

To prevent similar vulnerabilities in the future, it is important to regularly update your packages to the latest versions, review the security practices and history of package maintainers, and consider using security tools like Vulert to monitor and alert for open-source vulnerabilities in your software.

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