ts-rand-sdk (npm) · Malicious Code
Affects ts-rand-sdkSource GCVE Database
Malicious package : remove ts-rand-sdk and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:18 UTC
Malicious package
Published to npm · OSV MAL-2026-14193
What to do
Remove ts-rand-sdk 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 |
|---|---|---|
| npmts-rand-sdk | 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 ts-rand-sdk npm package contains malicious code that executes a hidden payload with full Node.js capabilities on the host machine. It disguises itself as a random transactions SDK but loads and executes obfuscated JavaScript code from a disguised data file. This code execution grants arbitrary filesystem, process, and network access, effectively compromising any system running the package. Immediate removal and secret/key rotation are strongly advised.