helmet-pro (npm) · Malicious Code
Affects helmet-proSource GCVE Database
Malicious package : remove helmet-pro and rotate any secrets on hosts that installed it.
Data as of 6 Aug 2026, 18:45 UTC
Malicious package
Published to npm · OSV MAL-2026-13401
What to do
Remove helmet-pro 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 |
|---|---|---|
| npmhelmet-pro | 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 helmet-pro@10.0.4 is a typosquatting malicious package that executes arbitrary remote code during installation. It uses an obfuscated postinstall script that fetches and executes attacker-controlled code from a remote JSON bin, enabling dynamic payload updates without republishing. The package disguises itself as a legitimate SMTP-related module to evade detection.