MAL-2025-65 Malicious code in hardhat-dotenv (npm)
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
The package contains code to exfiltrate environment variables to an attacker-controlled server.
-= Per source details. Do not edit below this line.=-
Source: ghsa-malware (3339a5b064b412e57a50444acb2bd685d7e5e7684e6d9ceaa0f1c31ff1f97454)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hardhat-dotenv(npm) | All versions | No fix listed |
| npm hardhat-dotenv(npm) | = 16.4.8 | No fix listed |
| npm hardhat-dotenv(npm) | = 16.4.7 | No fix listed |
References
- github.com vendor-advisory