Skip to content
HighVulnerability

GHSA-7cx2-g3h9-382p: Crawl4AI: Arbitrary file write (symlink/TOCTOU) plus log and webhook-header injection in Docker server

Published
Record updated
View JSON
Affected
  • crawl4ai <= 0.8.7
Fixed in
0.8.8
  • released June 3, 2026, 12 days before disclosure

Summary

GHSA-7cx2-g3h9-382p affects the Docker API server of Crawl4AI. The headline flaw is an arbitrary file write through the output_path parameter of POST /screenshot and POST /pdf, because the 0.8.7 validate_output_path check was string-only and did not resolve symlinks, and the final open() followed them. The source also reports CRLF log injection (CWE-117) and webhook request-header injection (CWE-93/CWE-113).

Mitigation

Upgrade to the patched version. Also enable authentication with CRAWL4AI_API_TOKEN and run the container with a read-only root filesystem. The fixes themselves add real-path resolution with O_NOFOLLOW for output_path, a logging filter that strips CR/LF/control characters, and validation of webhook headers.