@aspect-security/argon2 (npm) · Malicious Code
Affects @aspect-security/argon2Source GCVE Database
Malicious package : remove @aspect-security/argon2 and rotate any secrets on hosts that installed it.
Data as of 8 Jul 2026, 13:55 UTC
Malicious package
Published to npm · OSV MAL-2026-2505
What to do
Remove @aspect-security/argon2 from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@aspect-security/argon2 | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @aspect-security/argon2 contains malicious code that performs data exfiltration and arbitrary command execution via its preinstall script. Installing or running this package can lead to full system compromise. Removal of the package does not guarantee elimination of all malicious artifacts, and any secrets or keys on the affected system should be rotated immediately from a separate, uncompromised device.