auth-state-service (npm) · Malicious Code
Affects auth-state-serviceSource GCVE Database
Malicious package : remove auth-state-service and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 13:05 UTC
Malicious package
Published to npm · OSV MAL-2026-6655
What to do
Remove auth-state-service 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 |
|---|---|---|
| npmauth-state-service | 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 'auth-state-service' contains malicious code that performs a silent, unpinned remote installation of another package ('ssr-auth-sync') at require time. This secondary package executes code within the consumer's process, representing a supply-chain attack. The package disguises itself with misleading metadata and includes evasion techniques such as obfuscated error messages. Systems with this package installed or running should be considered fully compromised, and all secrets and keys on those systems should be rotated immediately from a separate, trusted environment.