PYSEC-2026-239: Crawl4AI - Stored Cross-Site Scripting in Monitor Dashboard
Crawl4AI before 0.8.7 contains a server-side request forgery (SSRF) vulnerability in the Docker API server's /crawl/job and /llm/job endpoints, which accept webhook URLs without destination validation. An attacker can supply webhook URLs pointing to private or internal IP ranges, Docker networks, or cloud metadata endpoints (e.g. 169.254.169.254), causing the server to make requests to internal services and potentially expose cloud metadata.
Other sources
Crawl4AI before 0.8.7 contains a server-side request forgery vulnerability in the /crawl, /crawl/stream, /md, and /llm endpoints that fetch arbitrary user-supplied URLs without validation. Unauthenticated attackers can bypass the internal-address blocklist using IPv6-mapped IPv4 addresses to reach internal services and cloud metadata endpoints.
— OSV
Crawl4AI before 0.8.7 contains a stored cross-site scripting vulnerability in the monitor dashboard that renders crawl URLs and error messages via innerHTML without escaping. An attacker can submit a crafted crawl request with malicious markup that executes in an operator's browser when viewing the dashboard.
— OSV
Crawl4AI before 0.8.7 contains an arbitrary file write vulnerability in the Docker API server's /screenshot and /pdf endpoints. The outputpath parameter accepts arbitrary filesystem paths without validation, allowing an attacker to supply absolute or path-traversal values to write to any location writable by the application's user, overwriting server files and causing denial of service.
— OSV
Crawl4AI before 0.8.7 contains an arbitrary JavaScript execution vulnerability in the Docker API server's /executejs endpoint, which accepts and executes arbitrary user-supplied JavaScript in the server's browser context with --disable-web-security enabled. An attacker can execute arbitrary JavaScript and, combined with the browser's relaxed security settings, perform server-side request forgery against internal services.
— OSV
Crawl4AI before 0.8.7 contains an authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API server. Attackers who know the default key can forge valid authentication tokens for any user, bypassing authentication and gaining full access to protected functionality.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crawl4AIto a version that resolves this vulnerability.Fixed in 0.8.7
Event History
Frequently Asked Questions
Which deployments are affected?
Crawl4AI versions before 0.8.7 are affected. The described issues include Docker API server endpoints, general crawl and LLM endpoints, and the monitor dashboard.
Does exploitation require authentication or special network access?
The arbitrary-URL SSRF issue in /crawl, /crawl/stream, /md, and /llm can be exploited by unauthenticated attackers. For the dashboard XSS, an attacker must submit a crafted crawl request, and an operator must subsequently view the rendered crawl URL or error message in the monitor dashboard.
What internal targets can the SSRF reach?
Attacker-controlled webhook URLs can target private or internal IP ranges, Docker networks, and cloud metadata services such as 169.254.169.254. The internal-address blocklist can be bypassed using IPv6-mapped IPv4 addresses for the affected general endpoints.
How can teams determine whether the stored XSS may have been triggered?
Review crawl requests and resulting error messages for malicious markup, particularly entries that would be displayed in the monitor dashboard. A compromise would require an operator to have viewed the affected dashboard content in a browser.