Malicious npm package niieani — full system compromise on install; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub's malware advisory database published GHSA-r2hm-8h2c-9m2h on 2026-12-01 flagging the npm package niieani as embedded malicious code (CWE-506). All published versions (= 0) are affected and no patched version exists, so any installation results in full compromise of the host machine, with the advisory warning that control of the computer may have been handed to an outside entity and removal of the package cannot be assumed to remove the malicious software. Downloads are low (~84/month), limiting reach, but every machine that installed or ran the package should be treated as fully compromised with all secrets and keys exposed. There is no fix; remediation is removal plus credential rotation and system rebuild.
What to do
- Immediately stop using and remove the niieani package from all projects and machines
- Rotate all secrets, keys, tokens and credentials stored on affected machines, using a clean computer
- Rebuild/reimage affected machines; do not assume package removal removed the malware
- Audit systems and CI for signs of compromise and review dependency lockfiles for the package
Sources
All live incidents on Threat Watch