CVE-2017-16058: Hijacked Environment Variables in gruntcli

gruntcli Updated 02 Oct 2025

Summary

09/11/2018
No i
High
7.5

CVE-2017-16058: gruntcli is malware. Affects gruntcli 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 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

The gruntcli package is a popular npm package used for task automation in JavaScript projects. It provides a command-line interface for running Grunt tasks. Grunt is a JavaScript task runner that automates repetitive tasks such as minification, compilation, and testing. The gruntcli package allows developers to easily manage and execute Grunt tasks from the command line. However, all versions of the gruntcli package have been found to contain malware that steals environment variables and sends them to attacker-controlled locations.

Vulnerability Detail

The vulnerability in the gruntcli package allows an attacker to hijack environment variables and exfiltrate sensitive information. When the package is installed, it silently collects environment variables from the user's system and sends them to the attacker's server. This can include sensitive credentials, tokens, and other valuable information that may be stored in environment variables. The impact of this vulnerability can be severe, as it can lead to unauthorized access to systems and compromise of sensitive data.

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 steps mentioned in the 'how_to_fix' section to remove the package and mitigate the risk of further compromise.

Conclusion

The gruntcli 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, regenerate credentials, and review any exposed services. Additionally, consider conducting a thorough security review of your environment to identify any other potential compromises. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for gruntcli →

Share this vulnerability

FAQ

You can check if the gruntcli package is installed by running the command 'npm ls gruntcli' in your terminal. If the package is installed, it will be listed in the output.

The exact method of infection is unknown, but it is likely that the package was compromised by an attacker who gained unauthorized access to the package maintainer's account or the npm registry. It is important to always verify the integrity of packages before installing them and to regularly update and review the packages used in your projects.

If you find the gruntcli package installed in your environment, it is important to take immediate action. Follow the steps mentioned in the 'how_to_fix' section to remove the package, clear your npm cache, regenerate credentials, and review any exposed services. Additionally, consider conducting a thorough security review of your environment to identify any other potential compromises.

The trustworthiness of other packages from the same maintainer cannot be determined solely based on the presence of malware in the gruntcli package. It is recommended to review and verify the integrity of each package individually before using them in your projects.

To prevent similar vulnerabilities in the future, it is important to follow best practices for package management and security. This includes regularly updating packages, verifying their integrity before installation, monitoring for security advisories, and implementing secure coding practices.

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