security: delegated Browserless and Crawl4AI fetches can bypass initial SSRF validation
Problem
The Browserless and Crawl4AI web_fetch integrations validate only the URL submitted to the Gateway before delegating navigation to an external renderer/crawler.
The delegated service performs its own DNS resolution, follows redirects, and may load subresources. A URL that passes the Gateway preflight can therefore redirect or re-resolve to a loopback, RFC1918, link-local, or cloud-metadata address from the delegated service's network namespace.
This makes the current SSRF guard incomplete for self-hosted Browserless/Crawl4AI deployments.
Impact
An attacker who can influence a fetched URL may be able to make the delegated browser/crawler access services reachable from its deployment network, including internal HTTP services or cloud metadata endpoints.
Expected behavior
DeerFlow should fail closed when delegated navigation happens through a private or unverifiable backend unless the operator explicitly confirms that the backend's outbound network is isolated from private and metadata networks. Intentional internal crawling should remain possible through the existing explicit opt-in.
Proposed solution
- Keep initial target URL validation.
- Reject delegation to localhost/private/unverifiable Browserless or Crawl4AI backends by default.
- Add an explicit
network_isolation_confirmed: trueoperator acknowledgement for self-hosted backends whose egress has been isolated. - Preserve
allow_private_addresses: truefor intentional internal targets. - Document the deployment requirement and add regression tests for fail-closed and isolated-backend behavior.
Affected components
deerflow.community.browserless.toolsdeerflow.community.crawl4ai.toolsdeerflow.community.url_safety
Source: bytedance/deer-flow