OneCode npm malware: @onescience/onecode, onecode-web and onecode-linux-x64 fully compromise installed machines
Severity: critical · Patch status: no-fix-needed · Since 2026-11-18
On 2026-11-18 GitHub published malware advisories (CWE-506) for three npm packages: @onescience/onecode (~8,125 downloads/month), @onescience/onecode-web (~5,225 downloads/month) and onecode-linux-x64. Every published version (= 0) is flagged as embedded malicious code with no patched versions, meaning the packages themselves are malware rather than a compromised release. Any machine with these packages installed or running must be considered fully compromised, with attacker control implying potential secret and key theft and persistence that removal of the package may not undo. No fix exists; remediation is removal plus credential rotation and host rebuild.
What to do
- Treat any machine with these packages installed as fully compromised; isolate and rebuild it
- Rotate all secrets, keys, tokens and credentials stored on or accessible from affected machines, from a clean computer
- Remove the packages from all projects, lockfiles and CI pipelines and block them in your registry/proxy allowlists
- Audit build systems and developer workstations for the packages and signs of compromise
- Check npm audit logs and internal telemetry for installs of the packages
Sources
All live incidents on Threat Watch