kartykgithub-ph-c / ph-d / kartyk-test-unscoped-pkg: malicious npm packages fully compromise installed machines (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-16
On 2026-11-16 GitHub added three malware advisories (GHSA-jhjw-5w2x-mmh6, GHSA-22xg-369p-hqrf, GHSA-r69m-249c-rm86) for npm packages kartykgithub-ph-c, kartykgithub-ph-d and kartyk-test-unscoped-pkg, all classified CWE-506 embedded malicious code with critical severity. Every published version is affected (1.0.0 for the two ph packages; 0.0.0-stage and 0.0.1 for the test package) and no patched versions exist. The advisory warns that any machine with these packages installed or running should be considered fully compromised, implying attacker control, secret theft and possible persistence beyond simple removal. Reach appears small (hundreds of downloads/month), but any developer or CI environment that installed them is at risk. Remediation is removal plus full incident response; there is no vendor fix.
What to do
- Rotate all secrets, keys, tokens and credentials stored on or accessible from any machine that installed these packages, using a clean machine
- Remove the packages from all projects, lockfiles and CI caches and block them in your registry proxy
- Rebuild affected machines or containers from trusted images; do not assume removal cleans persistence
- Audit logs, network egress and npm install history since installation for signs of execution or exfiltration
- Scan dependency trees for these package names and versions before further builds
Sources
All live incidents on Threat Watch