preview-server-auth (npm) · Malicious Code
Affects preview-server-authSource GCVE Database
Malicious package : remove preview-server-auth and rotate any secrets on hosts that installed it.
Data as of 29 Oct 2026, 22:53 UTC
Malicious package
Published to npm · OSV MAL-2025-5820
What to do
Remove preview-server-auth from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmpreview-server-auth | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'preview-server-auth' version 1.1.4 and later communicates with a domain linked to malicious activity. Installation or execution of this package results in a fully compromised system, potentially exposing all stored secrets and keys. Immediate removal of the package and rotation of all credentials from a separate, uncompromised system is strongly advised.