@gleamkit/ws (npm) · Malicious Code
Affects @gleamkit/wsSource GCVE Database
Malicious package : remove @gleamkit/ws and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:48 UTC
Malicious package
Published to npm · OSV MAL-2026-10402
What to do
Remove @gleamkit/ws 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@gleamkit/ws | 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 @gleamkit/ws version 8.21.3 is a malicious package that impersonates the legitimate ws package by copying its metadata and source code. It contains a heavily obfuscated payload that, upon loading, fetches an external encrypted binary, decrypts it, writes it to the temporary directory, makes it executable, and runs it as a detached child process before exiting. This behavior executes attacker-controlled code on any project that installs and loads this package.