Malicious Code Exploit in Territorial Bee Dumbs Package
Summary
MAL-2025-109562: Malicious code in territorial_bee_dumbs (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 Territorial Bee Dumbs package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores through the automatic generation and publication of derivative packages. The vulnerability arises from the package's design, which allows for the execution of harmful scripts that can compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the Territorial Bee Dumbs package is rooted in its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a broader scheme to pollute the npm registry by continuously republishing variants of the package. The origin of this vulnerability is traced back to the tea.xyz token reward campaign, which has flooded the npm ecosystem with similar malicious packages. The ramifications include potential security risks for developers who inadvertently use these packages, as well as the degradation of the npm registry's reliability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall territorial_bee_dumbs
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 Territorial Bee Dumbs package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any unintended dependencies that may include this package.
Conclusion
The Territorial Bee Dumbs package poses a significant security risk due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is crucial for developers to be vigilant and remove any instances of this package from their projects. Utilizing tools like Vulert can aid in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for territorial_bee_dumbs →
FAQ
The Territorial Bee Dumbs package is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code can modify your package.json file, remove private flags, and republish variants, potentially compromising your project's integrity.
You should uninstall the Territorial Bee Dumbs package immediately using 'npm uninstall territorial_bee_dumbs' and check for any other affected packages.
Yes, Vulert can monitor and alert in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.