claims-constants (npm) · Malicious Code
Affects claims-constantsSource GCVE Database
Malicious package : remove claims-constants and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 16:11 UTC
Malicious package
Published to npm · OSV MAL-2026-12611
What to do
Remove claims-constants 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 |
|---|---|---|
| npmclaims-constants | 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 'claims-constants' version 35.2.2 contains malicious code that executes upon import. It downloads platform-specific binaries from obfuscated Cloudflare Workers subdomains and uses a DNS-TXT record covert channel fallback to retrieve additional payloads. These binaries are saved to temporary directories with disguised names, given executable permissions, and executed detached from the main process. The package's stated purpose is unrelated to this behavior, indicating deliberate malicious intent.