line-through (npm) · Malicious Code
Affects line-throughSource GCVE Database
Malicious package : remove line-through and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 18:23 UTC
Malicious package
Published to npm · OSV MAL-2026-15923
What to do
Remove line-through 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 |
|---|---|---|
| npmline-through | 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 'line-through' version 1.0.0 contains malicious code in its preinstall hook. During npm install, it runs a script that collects the installer's public IP address, OS hostname, and CI environment variables, then sends this data to a hardcoded external server. It also performs a DNS lookup encoding the hostname to an out-of-band collaborator domain. This behavior occurs automatically without user interaction.