webpack-cache-reset (npm) · Malicious Code
Affects webpack-cache-resetSource GCVE Database
Malicious package : remove webpack-cache-reset and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:53 UTC
Malicious package
Published to npm · OSV MAL-2026-5580
What to do
Remove webpack-cache-reset 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 |
|---|---|---|
| npmwebpack-cache-reset | 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 'webpack-cache-reset' version 0.1.4 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall hook to fetch and run a remote payload from an obfuscated URL, impersonating a legitimate webpack utility to trick users into installing it. Systems with this package installed should be considered fully compromised, and all secrets on those systems should be rotated immediately. Removal of the package alone may not eliminate the compromise.