type-context (npm) · Malicious Code
Affects type-contextSource GCVE Database
Malicious package : remove type-context and rotate any secrets on hosts that installed it.
Data as of 14 Jul 2026, 09:54 UTC
Malicious package
Published to npm · OSV MAL-2026-10440
What to do
Remove type-context 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 |
|---|---|---|
| npmtype-context | 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 'type-context' versions 3.2.7, 3.2.8, 3.2.9, and 3.2.11 contains malicious code that executes attacker-controlled JavaScript on the host. When imported and used, it runs a detached Node child process that fetches code from remote paste-style services and executes it with full module loader privileges. This allows an attacker to gain full control over the compromised system. Removal of the package does not guarantee elimination of all malicious software installed via this backdoor. Immediate secret and key rotation is recommended for affected systems.