Malware in transform-object-assign npm package — full compromise of installed machines; no safe version
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published a malware advisory (GHSA-6g3w-p5gf-4j7c) for the npm package transform-object-assign on 2026-12-01. All versions (= 0) are classified as embedded malicious code (CWE-506) with no patched version available. The advisory states that any computer with the package installed or running should be considered fully compromised, with potential full control handed to an outside entity, and recommends rotating all secrets and keys from a separate machine. The package sees roughly 78 downloads per month, limiting reach, but any installation is treated as an active compromise. Removal of the package alone is not guaranteed to remove resulting malicious software. Affected users should treat the incident as a host compromise, not merely a dependency issue.
What to do
- Rotate all secrets, keys, and credentials stored on or accessible from affected machines, using a different, uncompromised computer
- Isolate and rebuild any machine where the package was installed or executed; do not rely on simply uninstalling it
- Remove the package from all dependency manifests and lockfiles and block it in CI/CD and registry allowlists
- Audit systems for persistence mechanisms and signs of attacker access; investigate for lateral movement and data exfiltration
- Review npm dependency trees for other suspicious or typosquatted packages
Sources
All live incidents on Threat Watch