Malicious Code Detected in express-renew-bb-session Package
Summary
MAL-2025-20082: Malicious code in express-renew-bb-session (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 express-renew-bb-session package is an npm library designed to facilitate session management in web applications. It provides features for renewing sessions securely, making it a popular choice among developers. However, recent findings have revealed that this package contains malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the express-renew-bb-session package. This code can compromise the security of applications by potentially allowing unauthorized access or data breaches. The malicious nature of the code can lead to severe ramifications, including data theft, loss of user trust, and legal implications for developers and organizations using the affected package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall express-renew-bb-session
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, you can remove the express-renew-bb-session package from your project until a safe version is released. This can be done using the command: npm uninstall express-renew-bb-session. Consider using alternative packages for session management that do not have known vulnerabilities.
Conclusion
The express-renew-bb-session package has been found to contain malicious code, posing a significant risk to applications that utilize it. It is crucial for developers to update to a patched version or consider alternative solutions to ensure the security of their applications.
See every vulnerability recorded for express-renew-bb-session →
FAQ
It is an npm library used for managing sessions in web applications, allowing developers to renew sessions securely.
The malicious code was identified through security audits and reports from tools like Amazon Inspector.
Using the compromised package can lead to unauthorized access, data breaches, and loss of user trust.
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 if your application is affected without any signup.