Skip to main content
MalwarePublished

electron-sessions (npm) · Malicious Code

Affects electron-sessionsSource GCVE Database

0

Malicious package : remove electron-sessions and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:24 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14266

What to do

Remove electron-sessions 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

ProductAffectedFixed in
npmelectron-sessionsAffected
  • =0.1.5
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 'electron-sessions' version 0.1.5 contains heavily obfuscated malicious code that collects Electron/Chromium session data such as cookies and local storage. This data is then uploaded to a Vercel Blob storage controlled by the attacker using an embedded upload SDK. The package masquerades as a generic session utility but executes unauthorized data exfiltration when run via 'npx' or required in code.

References

Community reviews

Loading reviews…