@shared-runtime/modules (npm) · Malicious Code
Affects @shared-runtime/modulesSource GCVE Database
Malicious package : remove @shared-runtime/modules and rotate any secrets on hosts that installed it.
Data as of 19 Sep 2026, 01:36 UTC
Malicious package
Published to npm · OSV MAL-2026-16291
What to do
Remove @shared-runtime/modules 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 |
|---|---|---|
| npm@shared-runtime/modules | 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 @shared-runtime/modules version 9.9.10 contains malicious code that collects the installer's OS username, hostname, and current working directory basename. It then leaks this information via DNS queries to an attacker-controlled domain. The malicious behavior is obfuscated and triggered both during installation and when the package is required, while suppressing errors to avoid detection.