Critical Malicious Code Vulnerability in react-is-router Package
Summary
MAL-2025-6651: Malicious code in react-is-router (npm). Affects react-is-router versions 1.0.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 react-is-router package is a utility for integrating React applications with routing capabilities. It allows developers to manage navigation and rendering of components based on the application's state. However, this package has been identified to contain malicious code that could compromise the security of applications relying on it.
Vulnerability Detail
The vulnerability identified as MAL-2025-6651 originates from a malicious version of the react-is-router package (version 1.0.0). This version includes harmful code that can lead to unauthorized access or manipulation of application data. The implications of this vulnerability are severe, as it can potentially allow attackers to execute arbitrary code within the context of the affected application, leading to data breaches or service disruptions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-is-router
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, you can remove the react-is-router package from your project until a secure version is confirmed. You can do this by running the command: npm uninstall react-is-router.
Conclusion
The react-is-router package has been identified with a critical vulnerability due to malicious code in version 1.0.0. It is essential for developers using this package to take immediate action by updating to a secure version or removing the package to protect their applications from potential threats.
See every vulnerability recorded for react-is-router →
FAQ
react-is-router is a utility package for managing routing in React applications, enabling developers to control navigation and component rendering.
You can use Vulert, which monitors open-source vulnerabilities in your software. By checking your package-lock.json file, Vulert can alert you in real-time if your application is affected. You can also use the Vulert playground at Vulert Scanner to check for vulnerabilities without signing up.
If immediate updates are not feasible, consider removing the package as a temporary measure to mitigate risks until a secure version is available.
Detailed information about this vulnerability can be found in the official GitHub repository and the ReversingLabs report linked in the vulnerability details.
Failing to address this vulnerability could lead to unauthorized access, data breaches, and significant disruptions to your application, potentially harming your users and your organization's reputation.