classwork (npm) · Malicious Code
Affects classworkSource GCVE Database
Malicious package : remove classwork and rotate any secrets on hosts that installed it.
Data as of 10 Sep 2026, 18:32 UTC
Malicious package
Published to npm · OSV MAL-2026-14451
What to do
Remove classwork 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 |
|---|---|---|
| npmclasswork | 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 'classwork' npm package contains malicious code that can fully compromise any computer on which it is installed or executed. This compromise potentially exposes all stored secrets and keys, necessitating immediate rotation from a secure device. Removal of the package alone does not guarantee elimination of all malicious components due to possible persistent control by an attacker.