Malicious npm package safe-json-72 — full system compromise on install
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
GitHub published a malware advisory (GHSA-gcfj-2fgm-3jrq) on 2026-12-03 for the npm package safe-json-72, flagged as embedded malicious code (CWE-506). All versions (= 0) are affected and no patched version exists; the package has been removed from legitimate use and should be considered fully compromising any machine where it is installed or running. With roughly 50 downloads per month, exposure is limited but real. GitHub's guidance states that attackers may have obtained full control of affected computers, so removal of the package alone cannot be assumed to eliminate the malicious software. Any organisation or developer with the package in a dependency tree should treat secrets and keys on those machines as stolen and rotate them from a clean machine.
What to do
- Remove safe-json-72 from all projects and lockfiles immediately
- Rotate all secrets, keys, and credentials stored on affected machines, using a clean computer
- Rebuild/reimage affected machines; do not assume package removal removes the malware
- Audit dependency trees and CI caches for the package and review recent builds for compromise
- Block the package in registry proxies and internal mirrors
Sources
All live incidents on Threat Watch