Critical Malicious Code Vulnerability in bonez Package
Summary
MAL-2025-15940: Malicious code in bonez (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 bonez package is a JavaScript library available in the npm ecosystem, primarily used for various web development tasks. It offers functionalities that enhance the development experience by providing reusable components and utilities. However, the package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the bonez package stems from the inclusion of malicious code that can compromise the security of applications using this package. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The malicious nature of this vulnerability was discovered by Amazon Inspector, highlighting the importance of scrutinizing third-party packages for security flaws.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bonez
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 bonez package altogether and look for alternative libraries that provide similar functionalities without the associated risks. Additionally, you can implement security measures such as code reviews and dependency scanning to mitigate potential threats.
Conclusion
The bonez package has been identified as containing malicious code, posing a significant risk to applications that utilize it. It is crucial to update to a patched version or find alternative solutions to mitigate these risks. Regular monitoring and auditing of dependencies can help prevent similar vulnerabilities in the future.
See every vulnerability recorded for bonez →
FAQ
The bonez package is a JavaScript library used in web development, providing various utilities and components to enhance development efficiency.
The malicious code can lead to unauthorized access and potential data breaches, compromising the security of applications that use the package.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for vulnerabilities without any installation.
To prevent future vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and consider implementing a policy for vetting third-party packages.
If immediate updates are not possible, consider removing the package and replacing it with a safer alternative while implementing security measures to protect your application.