PyPI: crawl4ai
GHSA-wm69-2pc3-rmmf
Safety vulnerability ID: SFTY-20260618-46956
Affected versions of the Crawl4AI package are vulnerable to Server-Side Request Forgery (SSRF) due to inadequate destination validation on the streaming crawl path. The `handle_stream_crawl_request` function fails to apply the `validate_url_destination` check, allowing seed URLs to be processed without ensuring they are globally routable. An attacker can exploit this vulnerability by sending a `POST /crawl/stream` request or a `POST /crawl` request with `crawler_config.stream=true` to access internal services and cloud metadata endpoints, potentially exposing sensitive information such as IAM credentials.
Overview
Crawl4AI: Unauthenticated SSRF on the Docker server streaming crawl path (/crawl/stream)
Advisory
Crawl4AI – Server-Side Request Forgery (SSRF)
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
