Malicious Code Detected in express-national-redirect2 Package
Summary
MAL-2025-20081: Malicious code in express-national-redirect2 (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-national-redirect2 package is an npm module designed to facilitate national redirects in web applications. It is utilized by developers to manage URL redirection based on geographical locations. However, this package has been identified to contain malicious code, posing a significant risk to applications that depend on it.
Vulnerability Detail
The express-national-redirect2 package has been found to harbor malicious code that can compromise the security of applications using it. This vulnerability originates from the package itself, which was likely introduced intentionally or through a compromised version. The ramifications of this vulnerability include unauthorized access to sensitive data, potential data breaches, and the ability for attackers to execute arbitrary code within the affected applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall express-national-redirect2
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 temporarily removing the express-national-redirect2 package from your project until a secure version is available. You can do this by running: npm uninstall express-national-redirect2. Additionally, you may explore alternative packages that provide similar functionality without the associated risks.
Conclusion
The express-national-redirect2 package has been identified as containing malicious code, posing significant security risks to applications that utilize it. It is crucial to update the package to a secure version or consider alternative solutions to mitigate these risks.
See every vulnerability recorded for express-national-redirect2 →
FAQ
It is an npm module used for managing national redirects in web applications.
The malicious code may have been introduced intentionally or through a compromised version of the package.
Using this package can lead to unauthorized access to sensitive data and potential data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Consider uninstalling the package temporarily or using alternative packages until a secure version is available.