anthropic-setup (npm) · Malicious Code
Affects anthropic-setupSource GCVE Database
Malicious package : remove anthropic-setup and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:15 UTC
Malicious package
Published to npm · OSV MAL-2026-12510
What to do
Remove anthropic-setup 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 |
|---|---|---|
| npmanthropic-setup | 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 'anthropic-setup' version 1.0.1 contains malicious code that hijacks the Anthropic API key and user prompt/response data. It writes a configuration file redirecting API requests to a third-party server controlled by the attacker, exfiltrating sensitive information. The package uses obfuscated code to conceal this behavior from casual inspection.