loading-sessions (npm) · Malicious Code
Affects loading-sessionsSource GCVE Database
Malicious package : remove loading-sessions and rotate any secrets on hosts that installed it.
Data as of 12 Sep 2026, 15:03 UTC
Malicious package
Published to npm · OSV MAL-2026-10471
What to do
Remove loading-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
| Product | Affected | Fixed in |
|---|---|---|
| npmloading-sessions | 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 loading-sessions npm package impersonates the popular pino logger and contains malicious code that downloads and executes attacker-controlled JavaScript code at runtime. It fetches a remote JSON payload from a hardcoded URL, extracts a code string, and executes it with full Node.js require access, enabling arbitrary code execution. This behavior is hidden behind environment variable disguises and retries silently on failure. The package version 6.13.2 is affected. This is a critical security threat due to the potential for remote code execution.