Crawl4AI@0.8.0

πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

  • latest version

    0.9.6

  • first published

    2 years ago

  • latest version published

    5 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the Crawl4AI package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the PDFContentScrapingStrategy process, specifically when _get_pdf_path() re-downloads targets using Python requests without validating egress destinations. An attacker can access internal services and exfiltrate sensitive information by supplying crafted URLs that redirect to internal addresses or leverage DNS rebinding, with the extracted PDF text included in crawl results.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.9.3 or higher.

    [,0.9.3)
    • H
    Denial of Service (DoS)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Denial of Service (DoS) via the PDFContentScrapingStrategy process. An attacker can exhaust system resources by sending POST requests that trigger the download and processing of large remote PDF files without size or page limits.

    How to fix Denial of Service (DoS)?

    Upgrade Crawl4AI to version 0.9.3 or higher.

    [,0.9.3)
    • M
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the RobotsParser.can_fetch process. An attacker can access internal, loopback, or cloud-metadata addresses by enabling check_robots_txt and leveraging redirects or DNS rebinding techniques to bypass egress controls.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.9.4 or higher.

    [,0.9.4)
    • C
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the link_preview_config process. An attacker can access internal, private, and cloud-metadata resources by supplying a crafted page with include_external and include_patterns set, causing the AsyncUrlSeeder to fetch and return parsed head data from otherwise restricted addresses.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.9.4 or higher.

    [0.7.0,0.9.4)
    • H
    Regular Expression Denial of Service (ReDoS)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the RegexExtractionStrategy.custom, RegexChunking.patterns, or schema regex fields in API request bodies. An attacker can cause the server to become unresponsive by submitting crafted regular expressions that trigger excessive backtracking.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade Crawl4AI to version 0.9.5 or higher.

    [0.7.0,0.9.5)
    • H
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the handle_stream_crawl_request process. An attacker can access internal-only services and cloud-metadata endpoints by sending crafted requests to the affected API endpoints, causing the server to fetch and stream responses from arbitrary internal URLs.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.9.0 or higher.

    [,0.9.0)
    • H
    Symlink Attack

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Symlink Attack via the download process. An attacker can overwrite arbitrary files with attacker-controlled content by supplying crafted filenames containing absolute paths or directory traversal sequences, which are then written outside the intended downloads directory. This can lead to execution of malicious code by overwriting files such as shell rc-files, ~/.ssh/authorized_keys, cron entries, or Python modules on the import path. This is only exploitable if the crawler is run with sufficient privileges or in an environment where sensitive paths are writable.

    How to fix Symlink Attack?

    Upgrade Crawl4AI to version 0.9.0 or higher.

    [,0.9.0)
    • C
    Arbitrary Code Injection

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the browser_config.extra_args parameter in API requests. An attacker can execute arbitrary commands as the container's runtime user by injecting malicious Chromium launch arguments, leading to full read/write access to application data, secrets, environment variables, and potential data exfiltration. This is only exploitable if the Docker API server is left unauthenticated and accessible to attackers.

    How to fix Arbitrary Code Injection?

    Upgrade Crawl4AI to version 0.9.0 or higher.

    [,0.9.0)
    • H
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the proxy_config.server parameter in the browser_config or crawler_config objects, as well as related proxy settings in extra_args. An attacker can access internal services and cloud-metadata endpoints by supplying a proxy address pointing to internal IPs, causing the server to route requests through attacker-controlled proxies and return sensitive responses.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.8.9 or higher.

    [,0.8.9)
    • C
    Improper Output Neutralization for Logs

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the output_path parameter in the Docker API server's screenshot and PDF endpoints, which failed to properly resolve symlinks and allowed file writes outside the intended directory. An attacker can achieve arbitrary file writes, potentially leading to code execution, by supplying crafted symlinked paths. Additionally, user-controlled input was reflected into log lines and webhook headers without adequate sanitization, enabling log forging and injection of unauthorized headers in outbound webhook requests. This is only exploitable if the API is left unauthenticated or the runtime user has write access to sensitive locations.

    How to fix Improper Output Neutralization for Logs?

    Upgrade Crawl4AI to version 0.8.8 or higher.

    [,0.8.8)
    • H
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the validate_webhook_url and validate_url_destination functions. An attacker can access internal services and cloud metadata endpoints by submitting specially crafted URLs that encode internal IP addresses using IPv6 transition forms or unspecified addresses. This is only exploitable if the API server is left unauthenticated (with jwt_enabled: false).

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.8.8 or higher.

    [,0.8.8)
    • C
    Improper Control of Dynamically-Managed Code Resources

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Improper Control of Dynamically-Managed Code Resources via the _safe_eval_expression function. An attacker can execute arbitrary system commands, read or write files, and exfiltrate sensitive data by sending a crafted extraction schema in a POST /crawl request that leverages Python generator and frame object attributes to escape the AST sandbox and achieve code execution. This is only exploitable if JWT authentication is disabled (the default configuration).

    How to fix Improper Control of Dynamically-Managed Code Resources?

    Upgrade Crawl4AI to version 0.8.7 or higher.

    [,0.8.7)
    • C
    Use of Hard-coded Credentials

    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.

    How to fix Use of Hard-coded Credentials?

    Upgrade Crawl4AI to version 0.8.7 or higher.

    [,0.8.7)
    • H
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the base_url parameter in API requests and the resolution of environment variables in the LLM configuration process. An attacker can obtain sensitive server-held secrets, such as provider API keys or authentication tokens, by supplying a malicious base_url or referencing protected environment variables in the request.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.8.8 or higher.

    [,0.8.8)
    • M
    Server-side Request Forgery (SSRF)

    Crawl4AI is a πŸš€πŸ€– Crawl4AI: Open-source LLM Friendly Web Crawler & scraper

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the async_dispatcher.py module. An attacker can manipulate the server into making arbitrary requests to internal or external resources by sending crafted input to the affected module.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade Crawl4AI to version 0.8.7 or higher.

    [,0.8.7)