instrumentation-undici: malicious npm package compromises hosts and exposes secrets (GHSA-xqrc-pjq4-v9m9)
Severity: critical · Patch status: unpatched · Since 2026-11-24
GitHub Advisory Database published GHSA-xqrc-pjq4-v9m9 on 2026-11-24, flagging the npm package instrumentation-undici as malware containing embedded malicious code (CWE-506). All versions from 0 onward are affected, and no patched version exists. The advisory states that any computer with the package installed or running should be considered fully compromised, with possible full control handed to an outside entity. Organizations and developers that depend on this package are at risk of secret and key theft and broader host compromise. Removal alone may not eliminate all malicious software, so affected systems should be rebuilt and credentials rotated from a separate clean computer.
What to do
- Immediately inventory all repositories, lockfiles, CI/CD caches, build artifacts, and developer machines for instrumentation-undici; treat any host that installed or ran it as fully compromised.
- Isolate affected hosts from networks and rebuild them from trusted images rather than relying on package removal.
- From a different, uncompromised computer, rotate all secrets, API keys, npm tokens, cloud credentials, SSH keys, and CI/CD secrets that were accessible to affected hosts.
- Remove the package and purge npm/CI caches and lockfile entries; audit dependency trees and package-lock.json/yarn.lock/pnpm-lock.yaml for transitive inclusion.
- Review CI/CD and cloud audit logs for unauthorized access or persistence, and monitor for further malicious activity.
Sources
All live incidents on Threat Watch