cors-tool (npm): malicious package compromises any machine where it is installed; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-11-30
GitHub's malware advisory database published GHSA-57pq-j7f4-p5jh on 2026-11-30 flagging the npm package cors-tool as containing embedded malicious code (CWE-506). All versions (= 0) are 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, and that removing the package does not guarantee removal of all malicious software. The package sees roughly 12 downloads per month, limiting reach, but any installation means credential and secret exposure. There is no fix; remediation is removal plus full compromise response.
What to do
- Rotate all secrets and keys stored on any machine where cors-tool was installed, using a different, clean computer
- Remove cors-tool from all projects and machines immediately
- Rebuild/reimage affected machines; do not assume package removal removed the malware
- Audit npm lockfiles and CI environments for cors-tool usage and review access logs for signs of compromise
- Block cors-tool in dependency firewalls/allowlists and scan for it in repositories
Sources
All live incidents on Threat Watch