Malicious Code Injection in exprdd Package - npm Vulnerability
Summary
MAL-2026-17241: Malicious code in exprdd (npm). Affects exprdd 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 exprdd package, version 5.2.1, is a malicious npm package that impersonates the widely-used express framework. It mimics express in terms of package name, description, author, contributors, repository, homepage, and keywords. This package is designed to deceive developers into installing it, believing it to be the legitimate express package.
Vulnerability Detail
The vulnerability arises from a preinstall lifecycle hook in the exprdd package's package.json file. This hook executes a command that fetches JavaScript code from a third-party host (codeberg.org) and pipes it directly into Node.js. The fetched code is unverified, mutable, and controlled by an attacker, executing with the installer's privileges before any legitimate package code is run. This poses a significant risk, especially for developers who might mistype 'express' as 'exprdd'.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall exprdd
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 use a package manager that supports package verification or auditing, such as npm audit, to identify and mitigate risks from malicious packages. Additionally, consider using Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The exprdd package poses a significant security risk due to its malicious nature and the method it uses to execute harmful code. Developers should be vigilant about package names and utilize tools like Vulert to monitor for vulnerabilities. Immediate action is required to remove this package and ensure the integrity of your applications.
See every vulnerability recorded for exprdd →
FAQ
exprdd is a malicious npm package that impersonates the express framework, designed to deceive developers into installing it.
The vulnerability exploits a preinstall lifecycle hook that fetches and executes unverified JavaScript code from a third-party source.
Using exprdd can lead to executing malicious code with the installer's privileges, potentially compromising the system and data.
Always verify the package name and source before installation. Use 'npm install express' to ensure you are installing the legitimate package.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground.