/

CVE-2026-71499

Severity:

CRITICAL RISK

(10.0)

Server-Side Request Forgery (CWE-918) in cf-manager Workers

CVE-2026-71499

Received

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-94, CWE-918

Impact:

Internal resource access and attacker-controlled code deployment

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

cf-manager accepts user-supplied URLs in worker deployment requests, fetches their contents, and deploys the response as a Worker script using stored Cloudflare credentials. This can let an attacker with deployment API access—or potentially unauthenticated access when API_SECRET is not configured—reach internal resources or run attacker-controlled JavaScript in the victim's Cloudflare account.

Affected context

The issue occurs in the worker deployment routes, including POST /api/:accountId/workers and POST /api/batch-deploy. In the multipart and JSON request paths, supplied URLs are fetched and their responses can be deployed as Worker scripts without adequate protocol, destination, redirect, content-type, or response-size validation. Risk depends on access to these routes and on how API authentication is configured.

Exploit preconditions

  • Attack surface: Worker deployment API routes that accept URLs in multipart or JSON requests
  • Required access: Deployment API access; unauthenticated access may be possible if API_SECRET is not configured
  • Trigger point: The application fetches a submitted URL and deploys the returned content
  • Why exploitation is possible: URL destinations and fetch responses are insufficiently constrained, and the content is deployed using stored Cloudflare credentials

Why this happens

The application makes bare fetch(url) calls with user-supplied URLs and does not adequately validate the destination, redirects, or response before using the content as a Worker script. Fetching attacker-selected destinations can expose server-side resources, mapping to CWE-918: Server-Side Request Forgery. Deploying fetched content as executable code also creates a code-injection risk, associated with CWE-94: Improper Control of Generation of Code.

Potential impact

  • The application may access internal or otherwise restricted resources.
  • Attacker-controlled JavaScript could be deployed and executed in the victim's Cloudflare Workers account.
  • Stored Cloudflare credentials could be used to make unauthorized changes to Workers.
  • Depending on reachable resources and account permissions, the incident could expose data or enable further abuse.

General mitigation guidance

Defensive patterns focus on restricting outbound requests and separating retrieved data from executable code:

  • Prefer fixed, trusted destinations or strict allowlists over arbitrary user-supplied URLs.
  • Validate URL schemes, destinations, and resolved addresses, and recheck destinations after redirects.
  • Apply outbound network policies that block access to internal and restricted address ranges.
  • Validate response types and enforce response-size limits before processing content.
  • Avoid deploying fetched content as code unless it has passed appropriate trust and integrity checks.
  • Scope stored credentials and deployment permissions to the minimum required, and require authentication by default.

How teams detect issues like this

  • Use static analysis to identify user-controlled values passed to network request APIs and responses passed to code deployment paths.
  • Review URL handling for scheme, destination, redirect, response-type, and size checks across every request format.
  • Monitor outbound requests from the application for unexpected destinations, redirects, or access to internal address ranges.
  • Enforce egress policies and deployment controls that restrict destinations and require authenticated, authorized requests.
  • Automated code review tools may help flag unvalidated URL fetches and flows from fetched content to code execution.

Sources

SourceLink
github.comgithub.com/hefy2027/cf-manager/commit/934aecbe614d8a08a8c96f393c0126519c35e3be
github.comgithub.com/hefy2027/cf-manager/releases/tag/1.1.2
github.comgithub.com/hefy2027/cf-manager/security/advisories/GHSA-wmx3-qxcc-mh64

Frequently asked

questions

The vulnerable functionality is exposed through API routes. Exploitation requires access to those routes, though unauthenticated access may be possible when API_SECRET is not configured.

An attacker needs to submit a deployment request containing a URL. The required access depends on the deployment's API authentication configuration.

Restrict fetches to trusted destinations, validate responses before use, and avoid deploying remotely fetched content as executable code without appropriate trust checks.

Treat user-provided URLs as untrusted, enforce outbound network and authentication policies, and review data flows from network responses into deployment or execution features.

Find out what's already
exploitable in your codebase.