Malicious npm package spectral-corsair-lib — full system compromise on install; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
GitHub published advisory GHSA-5jf7-p8wr-q7qg on 2026-12-03 flagging the npm package spectral-corsair-lib as malware (CWE-506, embedded malicious code). All published versions (= 0) are affected and there are no patched versions; the package has no known source code. GitHub's guidance states any computer with the package installed or running should be considered fully compromised, with the attacker potentially retaining persistent control even after removal. Any developer, CI system, or end user that installed the package is affected. The only remediation is removal of the package plus rotation of all secrets and keys from a clean machine and full incident response on affected hosts.
What to do
- Treat any machine with spectral-corsair-lib installed or running 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; block it in dependency firewalls/registries
- Rebuild affected systems from trusted images where persistence cannot be ruled out
- Audit npm dependency trees and CI logs for other signs of compromise or exfiltration
Sources
All live incidents on Threat Watch