cursed-modules (npm): malicious package compromises any machine where it is installed; no patched version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
GitHub published advisory GHSA-p67f-3v36-cgpf on 2026-12-03 flagging the npm package 'cursed-modules' as embedded malware (CWE-506). Every version (= 0) is affected and no patched version exists. GitHub's guidance states that any computer with the package installed or running should be considered fully compromised, with full control potentially handed to an outside entity; removing the package does not guarantee removal of all malicious software. All secrets and keys stored on affected machines should be rotated immediately. Any developer, CI system, or end user that installed the package is affected. There is no fix — remediation is removal plus full incident response on affected hosts.
What to do
- Treat any machine with cursed-modules installed as fully compromised; isolate and forensically review it
- Rotate all secrets, keys, tokens and credentials stored on or accessible from affected machines, from a clean computer
- Remove the package from all projects, lockfiles and CI pipelines and audit for other dependencies of the malicious publisher
- Rebuild affected systems from trusted images where feasible; do not assume uninstall removed the malware
- Check logs and egress for signs of attacker access following installation
Sources
All live incidents on Threat Watch