PyPI: crawl4ai

CVE-2026-53753

Safety vulnerability ID: SFTY-20260616-42763

Affected versions of the Crawl4AI package are vulnerable to Remote Code Execution due to inadequate attribute blocking in the AST validator within the `_safe_eval_expression()` function. The function fails to block Python generator and frame object attributes such as `gi_frame`, `f_back`, and `f_builtins`, allowing for a complete sandbox escape. An attacker can exploit this vulnerability by sending a `POST /crawl` request with a crafted `JsonCssExtractionStrategy` schema, enabling the execution of arbitrary system commands within the Docker container without requiring authentication.

Created at: Jun 29, 2026Updated at: Jun 29, 2026

Overview

Crawl4AI: AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Docker API

Advisory

Crawl4AI – Code Injection

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.

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