Malicious Code Detected in express-national-redirect2 Package

express-national-redirect2 Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-20081: Malicious code in express-national-redirect2 (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback