cf-manager Remote Code Execution via Unvalidated URL Fetch (CVE-2026-71499)
Overview
cf-manager is an all-in-one dashboard used to manage multiple Cloudflare accounts and services. The vulnerable component resides in worker/src/routes/workers.ts, where plain fetch(url) calls are made on user-provided URLs. The POST /api/:accountId/workers and POST /api/batch-deploy endpoints accept URLs lacking protocol, destination, redirect, content-type, or size checks, allowing malicious content to be deployed as Cloudflare Workers scripts.
Technical Details
The flaw originates from using bare fetch(url) on URLs supplied in the deployment API without any validation. Both multipart and JSON branches of the POST endpoints accept raw URLs, and the response is written directly to a Worker script using stored Cloudflare credentials. An attacker who can call the deployment API, or any unauthenticated user when the API_SECRET configuration is missing, can cause cf-manager to retrieve attacker-controlled JavaScript or internal resources and execute it within the victim's Cloudflare Workers account.
Impact
An attacker can execute arbitrary JavaScript in the compromised Cloudflare Workers account, potentially stealing credentials, accessing internal services, or performing further attacks against the victim’s infrastructure. Any organization using cf-manager without the fix is exposed, especially those that expose the deployment API to untrusted networks or omit the API_SECRET configuration.
Recommended Actions
- Patch cf-manager to version 1.1.2 or later.
- Restrict deployment API access to authorized users only.
- Disable the unauthenticated deployment API if API_SECRET is not set.
- Monitor deployment logs for unexpected script URLs and alert on new worker creations.
Detection
Review Cloudflare Workers deployment logs for script creations that reference external URLs or unusually large payloads. Correlate with API access logs to identify any calls to the POST /api/:accountId/workers or POST /api/batch-deploy endpoints originating from unauthorized sources. Enable alerting on deployments that occur without a valid API_SECRET or that use URLs not on an approved whitelist.