Critical Malicious Code Vulnerability in express-domain-access Package
Summary
MAL-2025-20071: Malicious code in express-domain-access (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-domain-access package is a middleware for Express.js applications that allows for domain-based access control. It is designed to enhance security by restricting access to certain domains. However, this package has been found to contain malicious code, which poses a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability in the express-domain-access package originates from the inclusion of malicious code that can compromise the security of applications using this package. This malicious code can lead to unauthorized access, data breaches, and other security incidents. It is crucial for developers to be aware of this vulnerability as it affects all versions starting from 0.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall express-domain-access
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 remove the express-domain-access package from your project until a secure version is available. You can do this by executing: npm uninstall express-domain-access.
Conclusion
The express-domain-access package has a critical vulnerability due to the presence of malicious code. It is essential for developers to act promptly by updating the package or removing it from their projects to mitigate potential risks.
See every vulnerability recorded for express-domain-access →
FAQ
The express-domain-access package is a middleware for Express.js that provides domain-based access control for web applications.
The malicious code can lead to unauthorized access and potential data breaches, compromising the security of applications that use this package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.
If immediate updates are not possible, consider removing the package as a temporary workaround until a secure version is available.
Detailed information about this vulnerability can be found in the GitHub repository of the package, as well as through security advisories related to npm packages.