Home › CVE › Vulnerabilities
CVE-2026-91940 — unclecode crawl4ai
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 with malicious image_save_dir paths to write attacker-controlled bytes into any directory accessible to the service account.
Severity breakdown
High · 8.7
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on integrity, none on confidentiality and availability
- Impact on other systems
- none
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| unclecode crawl4ai | ≥ 0.9.0, < 0.9.3 | 0.9.3 |
References by type
Vendor advisories
Other references
Affected
- unclecode crawl4ai
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-91940?
crawl4ai before 0.9.3 contains an arbitrary file write vulnerability in PDFContentScrapingStrategy where the filteruntrustedfields function fails to validate untrusted configuration fields. Attackers can submit crafted config bodies with malicious imagesavedir paths to write attacker-controlled bytes into any directory accessible to the service account. Weakness type: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22).
How severe is CVE-2026-91940?
CVE-2026-91940 has a CVSS 4.0 base score of 8.7 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-91940 being exploited?
Not as far as is known: CVE-2026-91940 is not in CISA's Known Exploited Vulnerabilities catalog as of December 6, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-91940?
unclecode crawl4ai ≥ 0.9.0, < 0.9.3 (fixed in 0.9.3).
How do I fix CVE-2026-91940?
Update to a fixed release: unclecode crawl4ai 0.9.3.