Critical Malicious Code Vulnerability in create-hardhat3-app Package
Summary
MAL-2025-190839: Malicious code in create-hardhat3-app (npm). Affects create-hardhat3-app versions 1.1.1 – 1.1.4. 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 create-hardhat3-app package is a tool designed for developers to quickly set up a Hardhat project, which is a popular Ethereum development environment. It simplifies the process of creating and managing smart contracts and decentralized applications. However, this package has been compromised, embedding malicious code that poses significant security risks to users.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the create-hardhat3-app package. This code can fully compromise any computer that has the package installed or running, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it can lead to complete control of the affected system by an external entity, making it imperative for users to act swiftly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall create-hardhat3-app
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 workaround, users should ensure that the create-hardhat3-app package is uninstalled from their systems. They can do this by running the command: npm uninstall create-hardhat3-app. Additionally, users should monitor their systems for any unusual activity and consider using alternative packages for their development needs.
Conclusion
The create-hardhat3-app package has been compromised with malicious code, posing a significant threat to users. Immediate action is required to remove the package and secure sensitive information. Users should stay informed about updates and consider using tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for create-hardhat3-app →
FAQ
You should immediately uninstall the package and rotate any secrets or keys stored on your computer.
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.
Currently, there is no patch available. Users are advised to remove the package and secure their systems.
Failing to address this vulnerability can lead to unauthorized access to your system, potentially resulting in data theft or loss of control over your applications.
It is recommended to avoid using this package until a secure version is released. Consider using alternative tools for your development needs.