---
id: CVE-2026-91940
title: >-
  crawl4ai before 0.9.3 contains an arbitrary file write vulnerability in
  PDFContentScrapingStrategy where the _filter_untrusted_fields function fails
  to validate untrusted configuration fields
summary: >-
  crawl4ai before 0.9.3 contains an arbitrary file write vulnerability in
  PDFContentScrapingStrategy where the _filter_untrusted_fields function fails
  to validate untrusted configuration fields. Attackers can submit crafted
  config bodies w…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'
cwe:
  - CWE-22
vendor: unclecode
product: crawl4ai
affected:
  - crawl4ai >= 0.9.0 < 0.9.3
published: '2026-09-15'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T20:15:36.037'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91940'
references:
  - url: >-
      https://github.com/unclecode/crawl4ai/security/advisories/GHSA-xpp7-j28w-2gvx
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/crawl4ai-before-0.9.3-arbitrary-file-write-via-pdfcontentscrapingstrategy
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/unclecode/crawl4ai/security/advisories/GHSA-xpp7-j28w-2gvx
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-15T15:46:54.453930Z'
ingestedAt: '2026-09-15T15:39:12.924Z'
epss: 0.00421
epssPercentile: 0.35974
---

## Overview

crawl4ai before 0.9.3 contains an arbitrary file write vulnerability in PDFContentScrapingStrategy where the _filter_untrusted_fields function fails to validate untrusted configuration fields. Attackers can submit crafted config bodies with malicious image_save_dir paths to write attacker-controlled bytes into any directory accessible to the service account.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
