js-shared-modules (npm) · Malicious Code
Affects js-shared-modulesSource GCVE Database
Malicious package : remove js-shared-modules and rotate any secrets on hosts that installed it.
Data as of 12 Sep 2026, 15:02 UTC
Malicious package
Published to npm · OSV MAL-2026-5098
What to do
Remove js-shared-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 |
|---|---|---|
| npmjs-shared-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 'js-shared-modules' version 1.11.7 is identified as malicious. It contains a postinstall script that executes automatically on npm install, which collects the installer's hostname, encodes it, and sends it to a third-party domain associated with malicious activity. The package has no legitimate functionality and is designed to exfiltrate host identity information. Installation of this package may lead to full compromise of the affected system.