Malicious Code Detected in css-minimizer-webpack-plugin-nightwatch-callback-rimraf Package
Summary
MAL-2025-17796: Malicious code in css-minimizer-webpack-plugin-nightwatch-callback-rimraf (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 css-minimizer-webpack-plugin-nightwatch-callback-rimraf is an npm package designed to optimize CSS files in web applications. It is commonly used in conjunction with Webpack to minimize CSS output, enhancing performance and load times. However, this package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the css-minimizer-webpack-plugin-nightwatch-callback-rimraf package. This code can potentially compromise the security of applications by allowing unauthorized access or manipulation of data. The malicious nature of the code can lead to severe ramifications, including data breaches, loss of sensitive information, and exploitation of the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall css-minimizer-webpack-plugin-nightwatch-callback-rimraf
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 may consider removing the css-minimizer-webpack-plugin-nightwatch-callback-rimraf package from your project until a secure version is available. You can do this by executing the following command: npm uninstall css-minimizer-webpack-plugin-nightwatch-callback-rimraf.
Conclusion
In summary, the css-minimizer-webpack-plugin-nightwatch-callback-rimraf package contains malicious code that poses significant security risks. It is crucial to update or remove the package to protect your application from potential threats. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for css-minimizer-webpack-plugin-nightwatch-callback-rimraf →
FAQ
It is an npm package used for optimizing and minimizing CSS files in web applications.
The malicious code was identified through security audits and reports from security tools like Amazon Inspector.
Using this package can lead to unauthorized access, data breaches, and potential exploitation of your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.