mham-js (npm) · Malicious Code
Affects mham-jsSource GCVE Database
Malicious package : remove mham-js and rotate any secrets on hosts that installed it.
Data as of 10 Sep 2026, 18:48 UTC
Malicious package
Published to npm · OSV MAL-2026-14478
What to do
Remove mham-js 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 |
|---|---|---|
| npmmham-js | 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 mham-js npm package version 1.0.4 contains malicious code that executes arbitrary attacker-controlled code upon import. It reads and decrypts an external encrypted payload using a hardcoded DES key, then runs this payload in a detached Node.js subprocess. The package's README falsely claims no action occurs on import, masking the malicious behavior.