Use of Hard-coded Credentials Affecting crawl4ai package, versions [,0.8.7)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Hard-coded Credentials vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-CRAWL4AI-17661138
  • published28 Jun 2026
  • disclosed16 Jun 2026
  • creditAugust829

Introduced: 16 Jun 2026

NewCVE-2026-56262  (opens in a new tab)
CVE-2026-56263  (opens in a new tab)
CVE-2026-56264  (opens in a new tab)
CVE-2026-56265  (opens in a new tab)
CVE-2026-56266  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-306  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-798  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Crawl4AI to version 0.8.7 or higher.

Overview

Crawl4AI is a 🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

Affected versions of this package are vulnerable to Use of Hard-coded Credentials via the output_path parameter, which allows arbitrary filesystem paths without validation. An attacker can overwrite or create files on the server by supplying crafted paths. Additionally, the monitor endpoints lack authentication, enabling unauthorized access to sensitive monitoring actions. The /execute_js endpoint permits execution of arbitrary JavaScript in the server's browser, and the JWT signing key is hardcoded, allowing attackers to forge authentication tokens. The monitor dashboard renders unescaped user input, which can be exploited to inject malicious scripts. Furthermore, webhook and crawl endpoints accept unvalidated URLs, enabling requests to internal or cloud metadata services. This is only exploitable if the server is deployed with default or weak JWT secrets, or if network access to the Docker API is not restricted.

Workaround

This vulnerability can be mitigated by setting a strong SECRET_KEY (minimum 32 characters) for JWT, enabling authentication via CRAWL4AI_API_TOKEN, and restricting network access to the Docker API.

References

CVSS Base Scores

version 4.0
version 3.1