Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in webpack-cache-reset (npm)

0
Critical
Published: 06/11/2026 (06/11/2026, 05:06:29 UTC)
Source: GCVE Database
Product: webpack-cache-reset

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.

Affected software

npmghsa
webpack-cache-reset
Affected versions
=0.1.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 12:53:26 UTC

Technical Analysis

The 'webpack-cache-reset' npm package (version 0.1.4) includes a postinstall script that hex-decodes a URL to fetch a JSON payload from an anonymous paste host. This payload is written to a temporary file and executed in a detached child Node.js process, allowing arbitrary remote code execution on the installer's machine. The package masquerades as a webpack utility by using a misleading README and repository URL to lure users. Due to the execution of attacker-controlled code at install time, any system with this package installed is considered fully compromised.

Potential Impact

Installation of this package results in arbitrary remote code execution on the affected system, potentially allowing attackers full control. This compromises all secrets and keys stored on the machine. Because the malicious code runs during installation and may install additional malware, simply removing the package does not guarantee full remediation.

Mitigation Recommendations

Users should immediately remove the 'webpack-cache-reset' package version 0.1.4 if installed. All secrets and keys on affected systems must be rotated from a different, trusted machine. Due to the severity of the compromise, a full system investigation and potential rebuild is recommended. No official patch or fix is available; avoidance and removal are the only mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5580
Osv Schema Version
1.7.4
Aliases
["GHSA-x29m-589q-wmg6"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a577eea68715ace43b41281

Added to database: 07/15/2026, 12:36:58 UTC

Last enriched: 07/15/2026, 12:53:26 UTC

Last updated: 07/31/2026, 20:12:07 UTC

Views: 34

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses