Malicious Code Injection in happy_bison_requirement Package
Summary
MAL-2025-94782: Malicious code in happy_bison_requirement (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 happy_bison_requirement package is part of the npm ecosystem, typically used for managing dependencies in JavaScript applications. It is designed to facilitate the development process by providing reusable code components. However, this package has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to significant security risks for developers who inadvertently include it in their projects.
Vulnerability Detail
The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which floods the npm registry with malicious packages. These packages contain scripts that automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only compromises the integrity of the affected projects but also pollutes the npm registry, making it difficult for developers to trust the packages they use.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall happy_bison_requirement
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, avoid using the happy_bison_requirement package and consider using alternative packages that provide similar functionality without the associated risks. Regularly audit your project's dependencies to identify and mitigate potential vulnerabilities.
Conclusion
The happy_bison_requirement package poses a significant security risk due to its malicious code injection capabilities. Developers should take immediate action to remove this package and monitor their dependencies for similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for happy_bison_requirement →
FAQ
It is an npm package used for managing dependencies in JavaScript applications, but it has been identified as malicious.
The vulnerability can lead to unauthorized modifications in your project's package.json file, potentially compromising your application's integrity.
You should uninstall the package immediately using 'npm uninstall happy_bison_requirement' and check for any other affected packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.