Malicious Code Vulnerability in cloudflare_module: Exfiltration of Host Information
Summary
MAL-2026-17768: Malicious code in cloudflare_module (npm). Affects cloudflare_module versions 1.0.0 – 99.0.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The cloudflare_module is an npm package that is intended to provide functionalities related to Cloudflare services. However, it has been compromised with malicious code that targets users by exfiltrating sensitive information. This vulnerability arises from a dependency-confusion lure that exploits the cloudflare_* namespace, making it critical for users relying on this package to be aware of its risks.
Vulnerability Detail
The vulnerability originates from the cloudflare_module version 99.0.1, which contains malicious code designed to exfiltrate sensitive information such as the operating system hostname, installation path, current working directory, and Node.js version. This information is sent to a hardcoded IP address over plain HTTP without user consent. The malicious behavior is triggered during the installation and whenever the package is required in an application, making it a persistent threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cloudflare_module
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, avoid using the cloudflare_module package until a secure version is released. If you must use it, consider isolating the environment where it is installed to limit potential data exposure.
Conclusion
The cloudflare_module has a serious vulnerability that allows for the exfiltration of sensitive information. Users must take immediate action to update or remove the package to protect their systems. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for cloudflare_module →
FAQ
The cloudflare_module is an npm package designed to integrate with Cloudflare services, but it has been compromised with malicious code.
The vulnerability sends sensitive information to a hardcoded IP address without user consent during installation and when the package is required.
Immediately update the package to the latest version or remove it from your project to prevent data exfiltration.
Yes, Vulert can monitor your project for open-source vulnerabilities using your package-lock.json file, providing real-time alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.