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-cycle (npm)

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

Description

The npm package 'webpack-cache-cycle' version 0.1.4 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall script to spawn a detached process that fetches and runs code from an obfuscated, anonymous URL. This behavior is unexpected for a webpack cache plugin and indicates a supply chain compromise. Systems with this package installed should be considered fully compromised, and all secrets on those systems must be rotated immediately.

Affected software

npmghsa
webpack-cache-cycle
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:35 UTC

Technical Analysis

The 'webpack-cache-cycle' npm package (version 0.1.4) includes a postinstall hook that runs a loader script. This script spawns a detached Node.js process that decodes a hex-encoded URL pointing to an anonymous paste service, performs an HTTPS GET request to retrieve attacker-controlled JavaScript code, writes it to a temporary file, and executes it. The package masquerades as a legitimate webpack cache plugin but performs unauthorized network activity and code execution during installation. The package metadata is fake, including placeholder author information and a non-existent GitHub repository. This results in full system compromise upon installation.

Potential Impact

Installing this package results in execution of arbitrary attacker-controlled code on the victim's machine, leading to full system compromise. Any secrets or keys stored on the compromised system may be exposed or stolen. Removing the package does not guarantee removal of all malicious artifacts or backdoors installed by the attacker.

Mitigation Recommendations

No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. All secrets and credentials stored on affected machines must be rotated from a secure, uncompromised environment. Users should audit their dependency sources carefully and avoid installing packages with suspicious metadata or unexpected network activity during installation.

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-5579
Osv Schema Version
1.7.4
Aliases
["GHSA-2p34-5qgm-wr3f"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a577eea68715ace43b41285

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

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

Last updated: 07/28/2026, 06:54:47 UTC

Views: 30

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