next-locomotive-init (npm) · Malicious Code
Affects next-locomotive-initSource GCVE Database
Malicious package : remove next-locomotive-init and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-7013
What to do
Remove next-locomotive-init 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 |
|---|---|---|
| npmnext-locomotive-init | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9a11400eaa7dd74b24610ec815438de047089be7005b94c37717fa2b6f916ab6) The package's declared postinstall script reads the installer's OS username via os.userInfo().username and the machine hostname via os.hostname(), composes them into a `<username>@<hostname>` identifier, and POSTs them to a hardcoded remote endpoint at https://seedance2-api.vercel.app/api/agent/register together with a `source: 'next-locomotive-init'` tag. The package is advertised as animation utilities for Next.js templates; there is no functional or documented reason to transmit host identifiers to a third-party endpoint on install. The transmission fires automatically as a lifecycle script on `npm install` with no opt-in, no configuration, and no disclosure, giving the operator of that endpoint a census of every machine that installs the package — a beacon consistent with reconnaissance for follow-on targeting.
References
- npmjs.com/package/next-locomotive-init/v/1.0.4 (opens in a new tab)
- npmjs.com/package/next-locomotive-init/v/1.0.3 (opens in a new tab)
- npmjs.com/package/next-locomotive-init/v/1.0.0 (opens in a new tab)
- npmjs.com/package/next-locomotive-init/v/1.0.2 (opens in a new tab)
- npmjs.com/package/next-locomotive-init/v/1.0.1 (opens in a new tab)
- github.com/advisories/GHSA-v4q3-jmq9-q449 (opens in a new tab)