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 worker-build (npm)

0
Critical
Published: 06/11/2026 (06/11/2026, 19:15:51 UTC)
Source: GCVE Database
Product: worker-build

Description

The npm package 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 contains malicious code that executes automatically upon installation. It collects sensitive host information and environment variables containing credentials, then exfiltrates this data in cleartext to a malicious external server. The package name mimics legitimate Cloudflare Workers build tooling, potentially causing dependency confusion. Systems with this package installed should be considered fully compromised.

Affected software

npmghsa
worker-build
Affected versions
=9.0.1=9.0.2=9.0.0

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/09/2026, 09:52:16 UTC

Technical Analysis

The 'worker-build' npm package versions 9.0.0, 9.0.1, and 9.0.2 includes a postinstall script that runs 'main.js' during installation. This script gathers host identity details (hostname, username, home directory, current working directory, command-line arguments), reads the consumer's package.json, retrieves git remote URLs, and extracts credential-like environment variables (e.g., AWS keys, tokens, passwords). It sends this collected data as a JSON payload in cleartext via HTTP POST requests to a known malicious domain and performs DNS lookups as side-channel beacons. The package name is designed to mimic legitimate Cloudflare Workers tooling, increasing the risk of dependency confusion attacks. The package is identified as malicious by multiple sources including Amazon Inspector, GHSA malware reports, and OpenSSF Package Analysis.

Potential Impact

Installation of any affected version of the 'worker-build' package results in immediate execution of malicious code that can exfiltrate sensitive environment variables and system information to an attacker-controlled server. This compromises all secrets and credentials stored on the host, potentially leading to full system compromise and unauthorized access to connected services. The presence of this package indicates a high likelihood of compromise, and removal alone may not eliminate all malicious artifacts.

Mitigation Recommendations

There is no official patch or fix available for this malicious package. Users should immediately remove all instances of 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 from their environments. All secrets and credentials exposed to the compromised system must be rotated from a secure, unaffected machine. Due to the potential for full system compromise, a thorough security assessment and remediation of the affected host is strongly recommended.

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-5677
Osv Schema Version
1.7.4
Aliases
["GHSA-7wpx-89q3-rcf4"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4f6c3868715ace431588c4

Added to database: 07/09/2026, 09:39:04 UTC

Last enriched: 07/09/2026, 09:52:16 UTC

Last updated: 07/31/2026, 01:25:21 UTC

Views: 10

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