Critical Malicious Code Vulnerability in bugsnag-plugin-react Package
Summary
MAL-2025-5805: Malicious code in bugsnag-plugin-react (npm). Affects bugsnag-plugin-react versions >= 99.99.99. 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 bugsnag-plugin-react package is a popular tool used for integrating Bugsnag error monitoring into React applications. It helps developers track and fix errors in real-time, enhancing application stability and user experience. However, this package has been found to communicate with a domain associated with malicious activity, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability identified in the bugsnag-plugin-react package stems from its communication with a domain linked to malicious activities. This could lead to unauthorized data access, data breaches, or the execution of harmful code within applications that depend on this package. The issue was introduced in version 99.99.99, and it is critical for developers to address this vulnerability to protect their applications and users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bugsnag-plugin-react
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, developers can remove the bugsnag-plugin-react package from their project until a secure version is available. This can be done by running the following command: npm uninstall bugsnag-plugin-react. Additionally, consider using alternative error monitoring solutions that do not have known vulnerabilities.
Conclusion
The bugsnag-plugin-react package has a critical vulnerability that allows communication with a malicious domain, posing risks to application security. Developers are urged to update the package to the latest version or consider alternative solutions to safeguard their applications. Regular monitoring for vulnerabilities using tools like Vulert can help maintain security in open-source projects.
See every vulnerability recorded for bugsnag-plugin-react →
FAQ
The vulnerability involves the package communicating with a domain associated with malicious activity, which can compromise application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities using just your package-lock.json file. Visit the Vulert playground at Vulert Scanner to check your application without any signup.
Update the bugsnag-plugin-react package to the latest version using npm install bugsnag-plugin-react@latest to eliminate the vulnerability.
Yes, consider using other error monitoring tools that do not have known vulnerabilities, such as Sentry or Rollbar.
As a temporary measure, uninstall the bugsnag-plugin-react package using npm uninstall bugsnag-plugin-react until a secure version is available.