Malicious Code Detected in airbnb-react-router-legacy Package - Version 97.1.0
Summary
MAL-2025-190604: Malicious code in airbnb-react-router-legacy (npm). Affects airbnb-react-router-legacy versions 97.1.0. 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 airbnb-react-router-legacy package is a JavaScript library used for routing in React applications. It provides developers with tools to manage navigation and rendering of components based on the application's URL. However, this package has been flagged for malicious behavior, specifically in version 97.1.0, due to its communication with a domain linked to malicious activities.
Vulnerability Detail
The vulnerability in the airbnb-react-router-legacy package stems from its malicious code that communicates with a domain associated with harmful activities. This can lead to potential data breaches, unauthorized access to user information, and compromise the integrity of applications utilizing this package. The identification of this vulnerability was made by the OpenSSF Package Analysis project, which flagged the package as malicious based on its behavior.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall airbnb-react-router-legacy
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
If immediate updating is not feasible, consider removing the package from your project until a secure version is released. You can do this by running: npm uninstall airbnb-react-router-legacy. Additionally, monitor your application for any suspicious activity.
Conclusion
The airbnb-react-router-legacy package version 97.1.0 has been identified as malicious due to its communication with a harmful domain. It is crucial for developers using this package to take immediate action by updating or removing it to safeguard their applications and users.
See every vulnerability recorded for airbnb-react-router-legacy →
FAQ
It is a JavaScript library used for managing routing in React applications, allowing developers to control navigation and component rendering based on the URL.
A package is flagged as malicious when it exhibits behavior that can harm users, such as communicating with harmful domains or executing unauthorized actions.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Consider removing the package from your project and monitoring your application for any unusual activity until a secure version is available.
Detailed information about the vulnerability can be found in the OpenSSF Package Analysis report and the associated GitHub repository.