malghz npm package: malicious code fully compromises hosts and exposes secrets (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-24
On 2026-11-24, the GitHub Advisory Database published GHSA-5w62-j47c-r6gj for the npm package malghz, classifying it as malware (CWE-506 Embedded Malicious Code) with critical severity. All versions =0 are affected, no patched version exists, and the package has about 16 downloads/month. The advisory states that any computer with malghz installed or running should be considered fully compromised, because an outside entity may have obtained full control. Secrets and keys on affected hosts should be rotated immediately from a different computer. Removing the package is recommended, but the advisory warns it may not eliminate all malicious software. No CVE, exploitation details, or specific attacker campaign were provided.
What to do
- Treat any host that installed or ran malghz as fully compromised; isolate it from networks and do not trust its credentials.
- From a separate clean machine, rotate all secrets, API keys, tokens, SSH keys, and passwords that were present on affected hosts.
- Remove malghz from projects and lockfiles, rebuild/redeploy from trusted sources, and audit npm dependencies for related malicious packages.
- Investigate affected hosts for persistence and unauthorized access; consider reimaging rather than cleaning in place.
- Monitor for misuse of rotated credentials and review npm install logs and CI caches for exposure.
Sources
All live incidents on Threat Watch