checkout-legal-logic (npm) · Malicious Code
Affects checkout-legal-logicSource GCVE Database
Malicious package : remove checkout-legal-logic and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 15:55 UTC
Malicious package
Published to npm · OSV MAL-2026-12569
What to do
Remove checkout-legal-logic 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 |
|---|---|---|
| npmcheckout-legal-logic | 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 'checkout-legal-logic' version 35.3.7 contains malicious code that acts as an import-time dropper. Upon requiring the package, it downloads a platform-specific executable from hardcoded Cloudflare Workers subdomains or via a DNS TXT record fallback from suspicious domains. The executable is saved under disguised filenames in temporary directories, made executable, and launched detached in the background. The package falsely advertises itself as a structured logger, but its behavior enables full host remote code execution controlled by the operator of the delivery endpoints.