checkout-promocode-logic (npm) · Malicious Code
Affects checkout-promocode-logicSource GCVE Database
Malicious package : remove checkout-promocode-logic and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 16:04 UTC
Malicious package
Published to npm · OSV MAL-2026-12588
What to do
Remove checkout-promocode-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-promocode-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-promocode-logic' version 35.7.7 contains malicious code that, upon requiring the module, loads a script which fetches and executes a payload from obfuscated remote hosts. The payload is downloaded via HTTPS or a DNS-TXT record covert channel, saved to temporary locations with names mimicking legitimate .NET diagnostic files, and executed to evade detection. The malicious code uses runtime string assembly to hide its network destinations, file names, and child process invocations, complicating analysis and detection.