Malicious Code Detected in csv-uglify-js-protractor-grus Package
Summary
MAL-2025-17806: Malicious code in csv-uglify-js-protractor-grus (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The csv-uglify-js-protractor-grus package is an npm module designed for JavaScript developers to facilitate the minification of CSV files in conjunction with Protractor testing. It aims to streamline the process of preparing CSV data for automated testing scenarios. However, this package has been identified to contain malicious code, posing significant security risks to users who integrate it into their applications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the csv-uglify-js-protractor-grus package. This code can potentially compromise the integrity of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The malicious code was introduced in version 0 and affects all subsequent versions, making it imperative for users to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall csv-uglify-js-protractor-grus
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 measure, you can avoid using the csv-uglify-js-protractor-grus package altogether and look for alternative libraries that provide similar functionality without the associated risks. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file to alert you of any open-source vulnerabilities in real-time.
Conclusion
The discovery of malicious code in the csv-uglify-js-protractor-grus package highlights the importance of vigilance when using open-source software. Users are advised to remove the affected package and consider alternatives to safeguard their applications from potential threats.
See every vulnerability recorded for csv-uglify-js-protractor-grus →
FAQ
It is an npm module designed for minifying CSV files in JavaScript applications, particularly for use with Protractor testing.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks, including unauthorized access and data breaches.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Immediately uninstall the csv-uglify-js-protractor-grus package and consider using alternative libraries that provide similar functionality.
Vulert uses your package-lock.json file to monitor and alert you in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.