npm · Malicious package advisory
Malwarehardhat-common
GHSA-9x7x-4gq4-qg45
Malicious code in hardhat-common (npm)
Details
**Severity:** Critical **Affected versions:** `= 2.0.0` ## Source: ossf-package-analysis (b72f90917aaff5b42d639bff4d28227b0cd2105ce4d2b109577a76b9d7003ecc) The OpenSSF Package Analysis project identified 'hardhat-common' @ 2.0.0 (npm) as malicious. It is considered malicious because: - The package executes one or more commands associated with malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/hardhat-common/MAL-2026-3712.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/hardhat-common/MAL-2026-3712.json - https://github.com/advisories/GHSA-9x7x-4gq4-qg45
Compromised versions (1)
- = 2.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.