electro-session (npm) · Malicious Code
Affects electro-sessionSource GCVE Database
Malicious package : remove electro-session and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:28 UTC
Malicious package
Published to npm · OSV MAL-2026-14242
What to do
Remove electro-session 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 |
|---|---|---|
| npmelectro-session | 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 electro-session versions 0.1.0, 0.1.1, 0.1.3, and 0.1.4 contains heavily obfuscated malicious code that acts as an infostealer. It uses Node.js built-in modules and a cloud blob upload SDK to read, decrypt, and exfiltrate local SQLite-backed credential and session stores from browsers, wallet extensions, and chat apps. The payload includes persistence mechanisms via scheduled recurring OS tasks and triggers when the package's CLI is run or when its Sessions module is instantiated.