sm-cart (npm) · Malicious Code
Affects sm-cartSource GCVE Database
Malicious package : remove sm-cart and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:18 UTC
Malicious package
Published to npm · OSV MAL-2026-14396
What to do
Remove sm-cart 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 |
|---|---|---|
| npmsm-cart | 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 'sm-cart' versions 99.0.0 and 99.0.1 contain malicious preinstall and postinstall scripts that unconditionally execute curl commands to a hardcoded IP address. This behavior causes the installing host to send information such as the internal package name, the host's public IP, and installation success to an external operator. The package itself has no functional code and uses a high version number to override internal packages with the same name, facilitating dependency confusion attacks.