Malicious Code Injection in bacoritul Package: npm Vulnerability Overview
Summary
MAL-2025-97596: Malicious code in bacoritul (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 bacoritul package is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized in various applications to enhance functionality and streamline development processes. However, bacoritul has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security risks for developers and users alike.
Vulnerability Detail
The vulnerability in the bacoritul package stems from its association with the tea.xyz token reward campaign, which floods npm with malicious packages. These packages contain scripts designed to automatically generate and publish derivative packages with randomized names, effectively inflating developer reputation scores for token rewards. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names, which leads to pollution of the npm registry and potential security threats for users who inadvertently install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bacoritul
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 bacoritul package and replace it with a known, secure alternative. Always verify the integrity of packages before installation by checking their source and reputation within the community.
Conclusion
The bacoritul package poses a significant security risk due to its malicious code designed to manipulate npm's publishing system. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for bacoritul →
FAQ
The bacoritul package is an npm package that has been identified as part of a malicious campaign aimed at manipulating developer reputation scores.
The vulnerability can lead to the installation of malicious code, which may compromise your application's security and integrity.
If you have installed bacoritul, you should immediately uninstall it using 'npm uninstall bacoritul' and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can also check your application using the Vulert playground without any signup.
Yes, always look for well-reviewed and actively maintained packages in the npm registry as alternatives to bacoritul.