Malicious Code Detected in array-routes Package - Security Alert
Summary
MAL-2025-14863: Malicious code in array-routes (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 array-routes package is a utility in the npm ecosystem that facilitates the management of route definitions in web applications. It allows developers to define routes in a structured manner, enhancing the organization and readability of their code. However, this package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the array-routes package stems from the inclusion of malicious code that can compromise the integrity of applications using this package. This code could potentially lead to unauthorized access, data breaches, or other malicious activities. The vulnerability was introduced in version 0 and affects all subsequent versions, making it critical for developers to address this issue promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall array-routes
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 array-routes package from your project if it is not essential. Alternatively, consider using a different routing package that does not have known vulnerabilities.
Conclusion
The discovery of malicious code in the array-routes package presents a serious threat to applications relying on it. Developers are urged to take immediate action by updating to a secure version or implementing workarounds to protect their applications from potential exploitation.
See every vulnerability recorded for array-routes →
FAQ
The array-routes package is an npm utility that helps developers manage route definitions in web applications.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application by visiting Vulert Scanner without needing to sign up.
Yes, it is recommended to update the array-routes package to the latest secure version to mitigate the vulnerability.
If immediate updates are not possible, consider removing the package or using an alternative routing solution until a fix can be applied.