Malicious Code Detected in brewdb Package - Security Alert
Summary
MAL-2025-16161: Malicious code in brewdb (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 brewdb package is a Node.js library designed to interact with various databases related to breweries and beer information. It provides developers with tools to access and manipulate data about breweries, beers, and related entities. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the brewdb package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall brewdb
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, users can remove the brewdb package from their project by executing the following command: npm uninstall brewdb. This will prevent the execution of any malicious code until a secure version is released.
Conclusion
The brewdb package has been identified to contain malicious code, posing serious security risks to applications. Users are urged to update or remove the package to safeguard their systems. Utilizing tools like Vulert can help monitor for vulnerabilities effectively.
See every vulnerability recorded for brewdb →
FAQ
brewdb is a Node.js library that allows developers to access and manage data related to breweries and beers.
The malicious code can lead to unauthorized access and potential data breaches in applications that utilize the brewdb package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As of now, a patched version has not been released. Users are advised to monitor for updates and take necessary precautions.
If immediate removal is not possible, consider isolating the affected code and monitoring for any suspicious activity until a patch is available.