Malicious Code Detected in cloudflare-agent-starter: A Critical Security Alert
Summary
MAL-2025-6880: Malicious code in cloudflare-agent-starter (npm). Affects cloudflare-agent-starter versions 99.99.99. 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-agent-starter' package is an npm library designed to facilitate the development of applications that interact with Cloudflare services. It is intended to streamline the integration of Cloudflare's features into web applications. However, this package has been flagged for containing malicious code that compromises its intended functionality and poses a security risk to users.
Vulnerability Detail
The vulnerability in 'cloudflare-agent-starter' stems from its communication with a domain linked to malicious activities. This package executes commands that are associated with harmful behavior, potentially leading to unauthorized access or data breaches. The malicious nature of this package was identified by the OpenSSF Package Analysis project, which flagged version 99.99.99 as compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cloudflare-agent-starter
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 measure, you can avoid using the 'cloudflare-agent-starter' package until a secure version is released. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'cloudflare-agent-starter' package has been identified as malicious, posing significant security risks to users. It is essential to take immediate action by removing the affected version and monitoring for updates. Utilizing tools like Vulert can help maintain the security of your applications by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for cloudflare-agent-starter →
FAQ
The package communicates with a domain associated with malicious activities and executes harmful commands.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Immediately uninstall the 'cloudflare-agent-starter' package and replace it with a secure alternative or wait for a patched version.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.
Detailed information can be found in the OpenSSF Package Analysis project documentation and the GitHub repository for 'cloudflare-agent-starter'.