Skip to main content

Malicious code in cloudflare_module (npm)

0
High
Published: 10/11/2026 (10/11/2026, 13:51:50 UTC)
Source: GCVE Database
Product: cloudflare_module

Description

The npm package 'cloudflare_module' version 99.0.1 is a malicious dependency-confusion lure that exfiltrates host information without user consent. It executes a beacon script during installation and when required, sending system details to a hardcoded IP address over unencrypted HTTP. The package uses a Proxy to avoid errors during bundling, disguising its malicious behavior. It is not an official Cloudflare package and targets any system resolving its name.

Affected software

npmghsa
cloudflare_module
Affected versions
=3.0.0=1.0.1=1.0.0=99.0.1

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: 10/11/2026, 21:37:18 UTC

Technical Analysis

The 'cloudflare_module' npm package (version 99.0.1) is a malicious package designed as a dependency-confusion lure targeting the 'cloudflare_*' namespace. It declares a postinstall script that runs 'beacon.cjs', which sends a JSON payload containing the host's name, installation path, current working directory, and Node.js version to a hardcoded bare-IP endpoint over plain HTTP. Additionally, the main module requires and fires the beacon on import, ensuring data exfiltration during runtime. The package exports a Proxy object that returns no-op functions to avoid errors during bundling, facilitating silent execution of the beacon. The package's README claims it is an 'authorized dependency-confusion test,' but the exfiltration occurs without user consent and targets any system resolving the package name, with the destination being an unattributed IP address unrelated to Cloudflare infrastructure.

Potential Impact

Systems that install or import the 'cloudflare_module' package version 99.0.1 may unknowingly send identifying system information to an attacker-controlled server. This data includes hostname, installation directory, current working directory, and Node.js version. The exfiltration occurs without user consent and over unencrypted HTTP, exposing sensitive environment details that could aid further attacks or reconnaissance. The package's design avoids detection by bundlers and does not produce errors, increasing the likelihood of unnoticed compromise.

Mitigation Recommendations

No official patch or remediation is indicated in the provided data. Users should avoid installing or using the 'cloudflare_module' package, especially version 99.0.1 and other listed versions. Verify package authenticity before installation, prefer official sources, and audit dependencies for suspicious behavior. Since this is a malicious package published to npm, removing it from projects and replacing it with legitimate dependencies is recommended. Monitor for any unexpected network connections to suspicious IP addresses such as 185.158.107.175. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.

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-17768
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6acc008d2cdf04f656fe3825

Added to database: 10/11/2026, 21:33:01 UTC

Last enriched: 10/11/2026, 21:37:18 UTC

Last updated: 10/11/2026, 21:37:18 UTC

Views: 3

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