Malicious Code Injection in broccoli-notthedevs: A Threat to npm Users
Summary
MAL-2025-100128: Malicious code in broccoli-notthedevs (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
broccoli-notthedevs is an npm package that is part of the broader ecosystem of tools used for building and managing web applications. It is designed to facilitate the development process by providing a set of utilities that enhance the functionality of the build system. However, this package has been compromised, making it susceptible to malicious activities that can affect developers and their projects.
Vulnerability Detail
The vulnerability in broccoli-notthedevs stems from its association with a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and creates random package names, leading to pollution of the npm registry. This can result in developers unknowingly using compromised packages, exposing their applications to security risks and potential data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall broccoli-notthedevs
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 compromised package by removing it from your project dependencies. You can do this by executing the following command: npm uninstall broccoli-notthedevs. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The broccoli-notthedevs package has been compromised, posing significant risks to developers and their applications. It is essential to take proactive measures by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities. Staying informed and vigilant is key to maintaining the security of your software projects.
See every vulnerability recorded for broccoli-notthedevs →
FAQ
The primary risk is the potential for malicious code to be executed within your application, which can lead to data breaches and compromise the integrity of your software.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected without needing to sign up.
If you have already used the compromised package, it is crucial to remove it from your dependencies and update your application to ensure that no malicious code is executed.
Yes, consider exploring other npm packages that offer similar functionalities but have a clean security record. Always review the package's reputation and security history before integrating it into your project.
Vulert provides real-time monitoring and alerts for open-source vulnerabilities by analyzing your package-lock.json file, allowing you to stay informed about potential risks in your dependencies.