stylex-custom-lib (npm): malicious package compromises any machine where it is installed (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub's advisory database published a malware advisory for the npm package stylex-custom-lib on 2026-12-01. The package is classified as embedded malicious code (CWE-506) with all versions (= 0) affected and no patched version available. GitHub's guidance states that any computer with the package installed or running should be considered fully compromised, with control potentially handed to an outside entity. No source code repository is known for the package. All developers and CI systems that installed stylex-custom-lib are affected; removal of the package alone cannot be assumed to eliminate the malicious software.
What to do
- Rotate all secrets, keys, and credentials stored on machines where the package was installed, using a clean computer
- Remove stylex-custom-lib from all projects, lockfiles, and CI caches
- Rebuild or reimage affected machines; do not assume removal cleans the infection
- Audit install logs and dependency trees for other typosquats or suspicious packages
- Block the package name in your registry proxy / allowlist
Sources
All live incidents on Threat Watch