Crawl4AI: LLM credential exfiltration in Docker server via request base_url and env: token resolution
GHSA-f989-c77f-r2cq · published 2026-06-16
- Severity
- High
- CVSS score
- 8.2
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 0.8.8
Disclosure of LLM provider API keys and other server secrets to an attacker-controlled endpoint; reading the JWT SECRET_KEY can lead to authentication bypass.
Upgrade crawl4ai to 0.8.8 or later.
The LLM endpoints ignore a request-supplied base_url; the endpoint is always derived server-side from the provider name. The field is still accepted but no longer honored (no breaking 4xx). LLMConfig refuses env: resolution of protected environment-variable names (names containing SECRET/PASSWORD/PRIVATE, prefixes CRAWL4AI/AWS_SECRET, and SECRET_KEY/REDIS_PASSWORD/TOKEN). Normal provider keys (e.g. OPENAI_API_KEY) are unaffected.
Upgrade to the patched version. Enable authentication (CRAWL4AI_API_TOKEN). Do not place sensitive secrets in the server environment alongside provider keys.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| crawl4ai | PyPI | <= 0.8.7 | 0.8.8 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalCodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinningcodewhale
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- CriticalCrawl4AI: authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API servercrawl4ai
- CriticalCrawl4AI: Arbitrary file write (path traversal) in crawler downloads can lead to RCEcrawl4ai
- CriticalCrawl4AI: Unauthenticated RCE via Chromium launch-argument injection in browser_config.extra_argscrawl4ai
- CriticalCrawl4AI: Multiple Docker API Vulnerabilities - File Write, SSRF, Auth Bypass, XSS, JS Executioncrawl4ai
- CriticalCrawl4AI: AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Docker APIcrawl4ai
- CriticalCrawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parametercrawl4ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.