Critical Malicious Code Vulnerability in berrynet Package
Summary
MAL-2025-5671: Malicious code in berrynet (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 berrynet package is an npm library designed for various network-related functionalities. It is widely used in JavaScript applications for handling network requests and responses. However, this package has been identified to contain malicious code that compromises the security of any system it is installed on, making it a significant risk for developers and users alike.
Vulnerability Detail
The vulnerability stems from embedded malicious code within the berrynet package. This code can lead to complete system compromise, allowing unauthorized access to sensitive information such as secrets and keys stored on the affected computer. The malicious nature of this code poses severe risks, as it can potentially allow attackers to control the system remotely and execute harmful actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall berrynet
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 berrynet package in your applications. If it is already installed, immediately uninstall it using the command: npm uninstall berrynet. Additionally, rotate all secrets and keys stored on the affected system to mitigate potential risks.
Conclusion
The berrynet package contains a critical vulnerability due to embedded malicious code, posing significant risks to any system where it is installed. Immediate action is required to remove the package and secure sensitive information. Developers should stay vigilant and monitor for updates regarding this issue.
See every vulnerability recorded for berrynet →
FAQ
The vulnerability involves embedded malicious code that can compromise the security of any system where the package is installed.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Immediately uninstall the package using the command 'npm uninstall berrynet' and rotate any sensitive information stored on the affected system.
Currently, there is no patch available. It is recommended to remove the package until a secure version is released.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete control of the affected system by malicious actors.