PyPI: crawl4ai

GHSA-365w-hqf6-vxfg

Safety vulnerability ID: SFTY-20260616-95092

Affected versions of the Crawl4AI package are vulnerable to Arbitrary File Write due to improper validation of the `output_path` parameter. The `/screenshot` and `/pdf` endpoints accept arbitrary filesystem paths, allowing overwriting of server files or writing to any writable location by the application user. An attacker can exploit this by providing a malicious path to overwrite critical files, potentially leading to Denial of Service (DoS) or unauthorized data manipulation.

Created at: Jun 16, 2026Updated at: Jun 16, 2026

Overview

Crawl4AI: Multiple Docker API Vulnerabilities - File Write, SSRF, Auth Bypass, XSS, JS Execution

Advisory

Crawl4AI – Path Traversal

Affected Package

Affecting crawl4ai package, versions
<= 0.8.6

Also affects

---

How to Fix

Upgrade
crawl4ai
to
0.8.7
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

References

Safety

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