modules-newline (npm) · Malicious Code
Affects modules-newlineSource GCVE Database
Malicious package : remove modules-newline and rotate any secrets on hosts that installed it.
Data as of 11 Nov 2026, 00:22 UTC
Malicious package
Published to npm · OSV MAL-2026-14483
What to do
Remove modules-newline 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 |
|---|---|---|
| npmmodules-newline | 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 modules-newline npm package version 0.0.6 declares its own name as a dependency and devDependency pointing to an external HTTP URL outside the official npm registry. This allows arbitrary code from an untrusted source to be fetched and executed during installation, bypassing npm registry auditing and integrity checks. The package's main file is a near-copy of another plugin but includes a comment indicating it is for security research testing. This behavior poses a risk of executing malicious code during package installation.