Malicious Code Injection in bella-tool: A Threat to npm Users
Summary
MAL-2025-99931: Malicious code in bella-tool (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 bella-tool package is part of the npm ecosystem, primarily used for various development tasks. However, it has been implicated in a malicious campaign that exploits npm's package publishing features. This vulnerability allows attackers to manipulate the package's metadata and publish harmful derivatives, potentially affecting developers and users relying on this package.
Vulnerability Detail
The vulnerability in bella-tool originates from its association with the tea.xyz token reward campaign, which floods npm with malicious packages. These packages contain scripts that automatically modify the package.json file, removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry with potentially harmful packages, leading to security risks for users who unknowingly install these variants.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bella-tool
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 can avoid using the bella-tool package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The bella-tool package has been identified as containing malicious code that poses a significant risk to users in the npm ecosystem. It is essential to take immediate action by updating or removing the package and to utilize tools like Vulert for ongoing monitoring of vulnerabilities in your projects.
See every vulnerability recorded for bella-tool →
FAQ
Bella-tool is an npm package used for various development tasks, but it has been compromised by malicious actors.
The vulnerability can lead to the installation of malicious packages that may compromise your project's integrity and security.
If you have installed bella-tool, it is crucial to update it to the latest version or remove it from your project until a secure version is available.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by visiting the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring a signup.