Malicious Code Vulnerability in exptredd Package: Impersonation of Express
Summary
MAL-2026-17247: Malicious code in exptredd (npm). Affects exptredd versions 5.2.1. 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 exptredd package, available via npm, is designed to mimic the popular express package, which is widely used for building web applications in Node.js. This malicious package copies express's metadata, including its description, author, and dependencies, to deceive developers into installing it instead of the legitimate express package. The vulnerability arises from a preinstall lifecycle hook that executes arbitrary code during installation, posing significant security risks.
Vulnerability Detail
The vulnerability in the exptredd package stems from its preinstall lifecycle hook that fetches and executes a JavaScript file from an untrusted third-party repository. This action allows an attacker to run arbitrary code on the user's machine with full permissions, potentially leading to data breaches, unauthorized access, or system compromise. The impersonation of the express package increases the likelihood of accidental installation by developers who mistype the package name.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall exptredd
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, avoid using the exptredd package and ensure that your development team is aware of the potential risks associated with mistyping package names. Implementing a code review process can help catch such issues before they lead to vulnerabilities.
Conclusion
The exptredd package poses a significant security threat by impersonating the express package and executing arbitrary code during installation. Developers must be vigilant about the packages they install and ensure they are using trusted sources. Regularly monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for exptredd →
FAQ
The exptredd package is a malicious npm package that impersonates the legitimate express package, designed to deceive developers into installing it.
The vulnerability allows the package to execute arbitrary code from a third-party repository during installation, compromising the user's system.
Using exptredd can lead to unauthorized access, data breaches, and potential system compromise due to the execution of malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup at Vulert Scanner.
If you have installed exptredd, you should uninstall it immediately and replace it with the legitimate express package to mitigate any risks.