/

CVE-2026-91943

Severity:

HIGH RISK

(7.7)

Server-Side Request Forgery (CWE-918) in Crawl4AI PDF

CVE-2026-91943

Awaiting Analysis

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Internal Service Access and Data Exfiltration

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Crawl4AI's PDFContentScrapingStrategy can be abused to make server-side requests to attacker-selected destinations without adequate egress validation. An authenticated attacker may redirect requests or use DNS rebinding to reach internal services and retrieve responses through extracted PDF text in crawl results.

Affected context

The vulnerability occurs in Crawl4AI deployments that use the PDFContentScrapingStrategy and allow authenticated users to submit or influence URLs processed by the crawler. Risk increases when the strategy re-downloads PDF targets through a server-side HTTP client without validating destination addresses, redirect targets, or DNS resolution results.

Exploit preconditions

  • Attack surface: The PDF content scraping and re-download workflow
  • Required access: Authenticated access sufficient to submit or influence crawl targets
  • Trigger point: Processing a PDF target through _get_pdf_path()
  • Why exploitation is possible: Server-side requests can follow attacker-controlled destinations or redirects without effective egress and internal-address validation
  • Exfiltration path: Retrieved responses may be exposed through PDF text extraction and returned crawl results

Why this happens

The underlying issue is a failure to enforce a trust boundary around server-side URL fetching. A user-influenced URL is re-requested with a general-purpose HTTP client without comprehensively validating resolved IP addresses, redirect destinations, or rebinding changes. This behavior maps to CWE-918: Server-Side Request Forgery, because the application can be induced to send requests to destinations that should not be reachable through its server-side network position.

Potential impact

  • An attacker could access services on internal networks
  • Sensitive responses from cloud metadata or administrative endpoints could be exposed
  • Internal service information could be collected for further attacks
  • Retrieved content could be exfiltrated through crawl results
  • Network segmentation controls could be weakened from the crawler's execution environment

General mitigation guidance

Mitigation generally focuses on reducing trust in user-controlled URLs and enforcing destination-aware network controls.

Common defensive patterns include:

  • Allowing requests only to explicitly approved schemes, hosts, and destinations
  • Resolving hostnames and validating every resulting address against private, loopback, link-local, and other restricted ranges
  • Revalidating destinations after redirects and immediately before connection establishment
  • Accounting for DNS changes and rebinding during the complete request lifecycle
  • Applying outbound network policies that deny unnecessary internal and metadata-service access
  • Limiting response size, request duration, and redirect depth
  • Running crawling workers with least-privilege network and runtime permissions
  • Avoiding unnecessary exposure of fetched response content in crawl results

How teams detect issues like this

Detection approaches can include:

  • Static analysis for server-side HTTP requests that consume user-controlled URLs without destination validation
  • Code review checks for unrestricted redirects, hostname-only allowlists, and missing post-resolution IP checks
  • Tests covering private, loopback, link-local, metadata, and alternate-address destinations
  • Network monitoring for crawler-originated connections to internal address ranges or unexpected ports
  • Policy enforcement requiring centralized, validated URL-fetching components
  • Automated security review tools that flag SSRF-prone request patterns and missing egress controls

Sources

SourceLink
github.comgithub.com/unclecode/crawl4ai/security/advisories/GHSA-q5rj-45vw-vp2g
vulncheck.comvulncheck.com/advisories/crawl4ai-before-0.9.3-ssrf-via-pdfcontentscrapingstrategy

Frequently asked

questions

Exploitation generally requires authenticated access that permits a user to submit or influence URLs processed by the PDF scraping workflow.

Yes. If outbound controls and destination validation are insufficient, the crawler may be induced to request internal, loopback, link-local, or cloud metadata endpoints.

Route server-side fetching through a constrained component that validates schemes, resolved addresses, redirects, and DNS changes, while applying restrictive egress policies.

Treat all user-provided URLs as untrusted, use explicit destination allowlists, block restricted address ranges, monitor outbound traffic, and run fetchers with minimal network privileges.

Find out what's already
exploitable in your codebase.