Critical Malicious Code Vulnerability in express-enhanced Package

express-enhanced Updated 05 Oct 2026

Summary

04/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17489: Malicious code in express-enhanced (npm). Affects express-enhanced versions 5.2.2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The express-enhanced package is an npm module that is designed to enhance the functionality of the popular Express web framework. It is intended for developers looking to extend Express with additional features. However, this package has been found to impersonate the official Express package, including using the same README and author information, which raises significant concerns about its integrity and security.

Vulnerability Detail

The vulnerability stems from the express-enhanced package version 5.2.2, which contains malicious code that executes during the installation process. The package's preinstall script downloads a JavaScript payload from an untrusted source (gitflic.ru) and executes it without any integrity checks. This allows an attacker to run arbitrary code on any machine that installs the package, posing a severe risk to users and their systems.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall express-enhanced

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 avoid using the express-enhanced package altogether and rely on the official Express package. Ensure that your package.json does not include express-enhanced, and instead, use the following command to install the official Express package: npm install express.

Conclusion

The express-enhanced package has been identified as a significant security risk due to its malicious code that executes during installation. Users are strongly advised to remove this package and switch to the official Express package to ensure the security of their applications. Continuous monitoring for vulnerabilities is recommended.

See every vulnerability recorded for express-enhanced →

Share this vulnerability

FAQ

express-enhanced is an npm package that claims to enhance the Express web framework but has been found to contain malicious code.

The vulnerability allows an attacker to execute arbitrary code on your machine during the installation of the express-enhanced package, potentially compromising your application and system.

You should immediately uninstall the express-enhanced package using npm uninstall express-enhanced and replace it with the official Express package.

No, there is no patched version of express-enhanced available. The only solution is to remove the package entirely.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall express-enhanced

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