8.6high
Crawl4AI unauthenticated SSRF in Docker streaming crawl endpoint
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.92% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wm69-2pc3-rmmfPYSEC-2026-2140
Description
Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, the Docker API server applied its SSRF destination check on the non-streaming /crawl path but not on the streaming path. handle_stream_crawl_request passed seed URLs straight to the crawler with no destination validation, allowing a remote unauthenticated client to call POST /crawl/stream or POST /crawl with crawler_config.stream=true with a URL pointing at an internal, private, or link-local address; the server fetched it and streamed the response body back. This issue is fixed in version 0.9.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| unclecode crawl4ai | < 0.9.0 | CVE List |
| crawl4ai (PyPI) | before 0.9.0 | GitHub Advisory Database, PyPA Advisory Database |
| kidocode crawl4ai | before 0.9.0 | NVD |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| PyPA Advisory Database | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, the Docker API server applied its SSRF destination check on the non-streaming /crawl path but not on the streaming path. handle_stream_crawl_request passed seed URLs straight to the crawler with no destination validation, allowing a remote unauthenticated client to call POST /crawl/stream or POST /crawl with crawler_config.stream=true with a URL pointing at an internal, private, or link-local address; the server fetched it and streamed the response body back. This issue is fixed in version 0.9.0.
GitHub Advisory Database
Summary
The Docker API server applied its SSRF destination check (validate_url_destination) on the non-streaming /crawl path but not on the streaming path. handle_stream_crawl_request passed seed URLs straight to the crawler with no destination validation. A remote, unauthenticated client could call POST /crawl/stream (or POST /crawl with crawler_config.stream=true, which short-circuits to the same handler) with a URL pointing at an internal, private, or link-local address; the server fetched it and streamed the response body back. The Docker API is unauthenticated by default.
Affected paths
POST /crawl/stream, and POST /crawl with crawler_config.stream=true (both route to handle_stream_crawl_request, deploy/docker/api.py).
Impact
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.
Fix
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.
Workarounds
- 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).
Credits
KOH Jun Sheng - reported the streaming-path SSRF with a runnable PoC and noted the count-based regression test that masked it, plus the shared root cause with redirect/deep-crawl link following.
NVD (es)
Crawl4AI es un rastreador y raspador web de código abierto compatible con LLM. Antes de 0.9.0, el servidor API de Docker aplicaba su verificación de destino SSRF en la ruta /crawl no de transmisión, pero no en la ruta de transmisión. handle_stream_crawl_request pasaba las URL semilla directamente al rastreador sin validación de destino, permitiendo a un cliente remoto no autenticado llamar a POST /crawl/stream o POST /crawl con crawler_config.stream=true con una URL apuntando a una dirección interna, privada o de enlace local; el servidor la recuperaba y transmitía el cuerpo de la respuesta de vuelta. Este problema se ha corregido en la versión 0.9.0.
References
| https://github.com/unclecode/crawl4ai/security/advisories/GHSA-wm69-2pc3-rmmf | advisory, mitigation, vendor-advisory, web | |
| https://github.com/unclecode/crawl4ai/commit/60886d1a0c52682e4c83a7cef9dfac417fff6bd2 | fix, patch | |
| https://github.com/unclecode/crawl4ai | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-57573 changed 2026-07-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wm69-2pc3-rmmf changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-57573 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2140 changed 2026-07-13 | CC-BY-4.0 |