invest-module-cookie (npm) · Malicious Code
Affects invest-module-cookieSource GCVE Database
Malicious package : remove invest-module-cookie 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-12393
What to do
Remove invest-module-cookie 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 |
|---|---|---|
| npminvest-module-cookie | 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 'invest-module-cookie' version 20.8.2 contains malicious code that downloads and executes an opaque binary payload from obfuscated external hosts. The payload is fetched using a covert DNS-TXT channel fallback, saved to temporary directories under disguised names, given executable permissions, and then executed. The package's stated purpose as a reusable cookie module is deceptive, and the publisher identity does not match the domains hosting the payload.