streak-key-lib (npm) · Malicious Code
Affects streak-key-libSource GCVE Database
Malicious package : remove streak-key-lib and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:38 UTC
Malicious package
Published to npm · OSV MAL-2026-14223
What to do
Remove streak-key-lib 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 |
|---|---|---|
| npmstreak-key-lib | 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 streak-key-lib npm package version 1.0.0 contains malicious code disguised as a dependency-free, browser-safe day-math helper. Despite claiming no network or filesystem interaction, it includes a large obfuscated block that executes on import, using an RC4/XOR decoder and self-defense techniques to evade analysis. The package is designed as a supply-chain stager, executing hidden code at import time and misleading consumers by promoting companion packages instead of direct installation. This behavior poses a risk of unauthorized code execution in Node.js environments that import this package.