Crawl4AI: Unauthenticated SSRF on the Docker server streaming crawl path (/crawl/stream)
GHSA-wm69-2pc3-rmmf · published 2026-06-18
- Severity
- High
- CVSS score
- 8.6
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 0.9.0
Unauthenticated read server-side request forgery: an attacker reads internal-only services and cloud-metadata endpoints (e.g. http://169.254.169.254/ for IAM credentials), with the response body streamed back. This is the same class and severity as the project's prior "SSRF via Direct Crawl Endpoints" advisory; /crawl/stream is part of that endpoint family and was never covered by the destination check.
Upgrade crawl4ai to 0.9.0 or later.
handle_stream_crawl_request now validates every seed URL's destination with the same global-routability check as handle_crawl_request, before any fetch. The SSRF regression test was hardened to assert per-handler coverage (including the streaming handler) rather than a bare occurrence count, which previously let this gap pass.
Upgrade to the patched version (0.9.0). Enable authentication and restrict who can reach the API (note: this does not constrain which URL the API fetches). Restrict the container's outbound network access (egress firewall / no metadata route).
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| crawl4ai | PyPI | <= 0.8.9 | 0.9.0 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalCodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinningcodewhale
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- CriticalCrawl4AI: authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API servercrawl4ai
- CriticalCrawl4AI: Arbitrary file write (path traversal) in crawler downloads can lead to RCEcrawl4ai
- CriticalCrawl4AI: Unauthenticated RCE via Chromium launch-argument injection in browser_config.extra_argscrawl4ai
- CriticalCrawl4AI: Multiple Docker API Vulnerabilities - File Write, SSRF, Auth Bypass, XSS, JS Executioncrawl4ai
- CriticalCrawl4AI: AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Docker APIcrawl4ai
- CriticalCrawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parametercrawl4ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.