Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Python aiai-agentscrawl4ai-cloudcrawlerdata-extractionllmmarkdownmcpopen-sourceplaywrightpythonragscraperweb-crawlerweb-crawlingweb-scraping
docs: add the non-security bug fixes to the v0.9.3 release notes
ntohidi7245f984282d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cc663edf..6121b1cd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [0.9.3] - 2026-08-31-0.9.3 is a security release. It closes five coordinated-disclosure advisories in the PDF processing path and the Docker Playground UI. There are no new features and no breaking changes. Users who accept untrusted URLs on the Docker server, or who open PDFs from sources they do not control, should upgrade.+0.9.3 is a security release. It closes five coordinated-disclosure advisories in the PDF processing path and the Docker Playground UI, and ships the 33 bug fixes that accumulated on `develop` since 0.9.2, most of them in the Docker server. There are no new features and no breaking changes. Users who accept untrusted URLs on the Docker server, or who open PDFs from sources they do not control, should upgrade.### Security@@ -21,11 +21,45 @@ The PDF path was the common thread. `PDFContentScrapingStrategy` is selectable fAll reporters are credited in `SECURITY-CREDITS.md`. GitHub Security Advisories accompany this release.+### Fixed++This release also carries the bug fixes that accumulated on `develop` since 0.9.2.++**Docker server**++- PDF scraping is supported by default, and requests selecting `PDFContentScrapingStrategy` are routed to `PDFCrawlerStrategy` so the pairing works without extra configuration. (#2094, #2150)+- The egress proxy chains through an upstream `HTTP_PROXY` / `HTTPS_PROXY` instead of ignoring it. (#2142)+- Junk proxy environment values fall through to the next candidate, and non-http proxy schemes are refused. (#2094)+- Compose v5 compatibility, clearer warnings on legacy fields, and better playground error handling. (#2094)+- `CRAWL4AI_API_TOKEN` is forwarded through compose, and `.llm.env` is optional rather than required. (#2094)+- The disabled-hooks 403 distinguishes the removed `hooks.code` field from other rejections. (#2094)+- `output_path` is declared a deprecated no-op rather than silently ignored. (#2094)+- `GET /monitor` redirects to the dashboard UI. (#2157, issue #2091)+- Failed crawl results are preserved instead of dropped, for both batch and single-URL requests. (#2094, #2134, issue #2133)+- An unavailable IPv6 loopback no longer breaks startup. (#2081, issue #2078)+- `mcp` is capped below 2 so the v1 low-level API used by `mcp_bridge` keeps working. (#2148, thanks @weike-zhang)+- Commented environment variable lines in compose are aligned with the environment list. (#2156)++**Crawler and core**++- `ManagedBrowser` no longer leaks a Playwright driver process when the browser fails to launch inside `__aenter__`. (#2160)+- `PDFCrawlerStrategy` placeholder responses are no longer vetoed as anti-bot blocks, which previously failed every PDF crawl and burned the retry budget. (#2138, issue #2135)+- Cookies are carried across manual PDF redirect hops, so gated and CDN-signed PDFs download correctly. (#2159)+- Unconditional `setTimeout` waits are removed from the overlay and consent removal scripts, which could hang a crawl under a restrictive CSP. (#2139)+- `remove_overlay_elements` no longer removes `<body>` when the body carries a global popup class. (#2163, thanks @Nalhin)+- The body-visibility timeout is configurable and validated, and the timeout warning is emitted even with `verbose=False`. (#2117, #2131, #2145, issues #2116, #2129, #2144)++**Documentation**++- Self-hosting and migration guides updated for 0.9.x. (#2093)+- The `PDFCrawlerStrategy` plus `PDFContentScrapingStrategy` pairing requirement is documented.+### Tests- `tests/unit/test_pdf_download_limits.py`: 22 tests covering per-hop destination validation, DNS rebinding, redirect bounds, byte and page caps, and untrusted-body clamping.- `tests/unit/test_pdf_html_escaping.py`: escaping of PDF paragraph text in `cleaned_html`.- `deploy/docker/tests/test_security_pdf_image_write.py`: rejection of image-write fields from untrusted bodies.+- Docker endpoint coverage for crawl failures and for the per-URL `crawler_configs` PDF guard.### Breaking Changesdiff --git a/README.md b/README.mdindex 1cd0ba15..310ac024 100644--- a/README.md+++ b/README.md@@ -39,7 +39,7 @@ Crawl4AI turns the web into clean, LLM ready Markdown for RAG, agents, and data[✨ Check out latest update v0.9.3](#-recent-updates)-✨ **New in v0.9.3**: Security release. Closes five coordinated-disclosure advisories: arbitrary file write, SSRF, and denial of service in the PDF processing path, plus two XSS issues in the Docker Playground. No new features, no breaking changes. [Release notes →](https://github.com/unclecode/crawl4ai/blob/main/docs/blog/release-v0.9.3.md)+✨ **New in v0.9.3**: Security release. Closes five coordinated-disclosure advisories: arbitrary file write, SSRF, and denial of service in the PDF processing path, plus two XSS issues in the Docker Playground. Also ships 33 bug fixes across the Docker server, crawler, and PDF handling. No new features, no breaking changes. [Release notes →](https://github.com/unclecode/crawl4ai/blob/main/docs/blog/release-v0.9.3.md)✨ Recent v0.9.2: Maintenance patch release. Fixes a `MemoryAdaptiveDispatcher` task/page leak when a streaming crawl is closed, Docker Playground "Advanced Config" and Monitor WebSocket auth, Playwright headless-shell packaging, and GPU (`ENABLE_GPU=true`) Docker builds. [Release notes →](https://github.com/unclecode/crawl4ai/blob/main/docs/blog/release-v0.9.2.md)@@ -571,6 +571,8 @@ async def test_news_crawl():A security release closing five coordinated-disclosure advisories. Four are in the PDF processing path: an arbitrary file write through `PDFContentScrapingStrategy` image-write fields, an SSRF where the PDF download followed redirects into internal addresses, a denial of service from unbounded PDF size and page count, and an XSS from unescaped PDF text in `cleaned_html`. The fifth is a DOM-based XSS in the Docker Playground that could expose the operator's API token.+It also carries 33 bug fixes that accumulated since 0.9.2: PDF scraping now works out of the box on the Docker server, the egress proxy chains through an upstream proxy, failed crawl results are reported instead of dropped, a Playwright driver leak on failed browser launch is fixed, and PDF crawls are no longer wrongly flagged as anti-bot blocks.+No new features, no breaking changes. Two defaults changed: PDF downloads now cap at 100 MiB and 2000 pages, and the Docker `limits.wall_clock_s` is now 300 seconds instead of 0.```bashdiff --git a/docs/blog/release-v0.9.3.md b/docs/blog/release-v0.9.3.mdindex 4d2d7260..256c4b3f 100644--- a/docs/blog/release-v0.9.3.md+++ b/docs/blog/release-v0.9.3.md@@ -4,7 +4,7 @@----I'm releasing Crawl4AI v0.9.3, a security release that closes five coordinated-disclosure advisories. No new features, no breaking changes.+I'm releasing Crawl4AI v0.9.3, a security release that closes five coordinated-disclosure advisories. It also carries the 33 bug fixes that piled up on `develop` since 0.9.2, most of them in the Docker server. No new features, no breaking changes.Four of the five are in the PDF path, and they share one root cause. `PDFContentScrapingStrategy` can be selected from an untrusted Docker API request body, and it downloads with `requests` rather than through the browser. Every control the server applies on the Chromium side (destination pinning, resource caps) simply did not reach it. The fifth is a DOM-based XSS in the Playground UI that could hand an operator's API token to an attacker.@@ -17,6 +17,7 @@ If you self-host the Docker server and accept crawl requests from clients you do- **Denial of service**: remote PDFs were downloaded and parsed with no size or page cap- **XSS**: PDF text was written into `cleaned_html` without escaping- **DOM XSS**: the Playground result viewer re-parsed crawled content as live HTML+- **33 other bug fixes**: Docker server, crawler, and PDF handling, listed further down## Security fixes@@ -71,11 +72,45 @@ That round trip re-parses the text as live HTML. The text is crawl output, so itThe round trip is removed. highlight.js renders from `textContent` and emits escaped markup on its own, so it was never needed.+## Bug fixes++Everything below landed on `develop` between 0.9.2 and this release. None of it is security related.++### Docker server++- **PDF works out of the box**: PDF scraping is supported by default, and a request that selects `PDFContentScrapingStrategy` is now routed to `PDFCrawlerStrategy` automatically. Before this you had to pair them by hand or get a placeholder back. (#2094, #2150)+- **Upstream proxy chaining**: the egress proxy now chains through `HTTP_PROXY` / `HTTPS_PROXY` instead of ignoring them, so the server works behind a corporate proxy. (#2142)+- **Proxy env handling**: junk values in the proxy environment fall through to the next candidate rather than failing the crawl, and non-http proxy schemes are refused up front. (#2094)+- **Compose v5**: compatibility fixes, clearer warnings when a legacy field is used, and better error handling in the playground. (#2094)+- **Token and LLM env**: `CRAWL4AI_API_TOKEN` is forwarded through compose, and `.llm.env` is optional instead of required. (#2094)+- **Clearer 403 on hooks**: the disabled-hooks response now says when the request used the removed `hooks.code` field, rather than giving one generic refusal. (#2094)+- **`output_path`**: declared a deprecated no-op instead of being silently ignored. (#2094)+- **`GET /monitor`**: redirects to the dashboard UI instead of returning nothing useful. (#2157, issue #2091)+- **Failed crawls are reported**: failure details are preserved for both batch and single-URL requests instead of being dropped. (#2094, #2134, issue #2133)+- **IPv6 loopback**: an unavailable IPv6 loopback no longer breaks startup. (#2081, issue #2078)+- **MCP pinning**: `mcp` is capped below 2, keeping the v1 low-level API that `mcp_bridge` depends on. (#2148, thanks @weike-zhang)+- **Compose formatting**: commented environment variable lines are aligned with the environment list. (#2156)++### Crawler and core++- **Playwright driver leak**: when a browser failed to launch inside `__aenter__`, the Playwright driver subprocess was left running. Repeated failed launches leaked one process each time. It is now cleaned up. (#2160)+- **PDF crawls wrongly flagged as blocked**: `PDFCrawlerStrategy` returns a deliberately near-empty placeholder response, and the anti-bot check read that as a block. Every PDF crawl failed, burned the whole retry budget, and then called the fallback fetch. The placeholder is now recognised. (#2138, issue #2135)+- **Cookies across PDF redirects**: redirects are followed by hand, which meant each hop started with an empty cookie jar. A host that set a cookie and then redirected never got it back, so gated and CDN-signed PDFs failed. One session now covers the whole chain. (#2159)+- **Overlay removal hang**: the overlay and consent removal scripts waited on unconditional `setTimeout` calls, which could hang a crawl under a restrictive CSP. The waits are gone. (#2139)+- **`remove_overlay_elements` deleting the page**: a page whose `<body>` carried a global popup class had its entire body removed, leaving an empty result. (#2163, thanks @Nalhin)+- **Body-visibility timeout**: now configurable and validated, and the timeout warning is emitted even when `verbose=False`. (#2117, #2131, #2145, issues #2116, #2129, #2144)++### Documentation++- Self-hosting and migration guides updated for 0.9.x. (#2093)+- The `PDFCrawlerStrategy` plus `PDFContentScrapingStrategy` pairing requirement is now documented.+## Tests- `tests/unit/test_pdf_download_limits.py`, 22 tests: per-hop destination validation, DNS rebinding, redirect bounds, byte and page caps, untrusted-body clamping, and temp-file cleanup on abort.- `tests/unit/test_pdf_html_escaping.py`, 7 tests: escaping of PDF paragraph text in `cleaned_html`.- `deploy/docker/tests/test_security_pdf_image_write.py`, 6 tests: rejection of image-write fields from untrusted bodies.+- Docker endpoint coverage for crawl failures and for the per-URL `crawler_configs` PDF guard.## Breaking changes@@ -103,6 +138,8 @@ docker pull unclecode/crawl4ai:0.9.3Thank you to Zhixi "Jace" Sun, Nguyen Tran Thanh Lam ([c240030](https://github.com/c240030)), and [e1codes](https://github.com/e1codes) for reporting these issues privately and giving us time to fix them before disclosure. All reporters are listed in [SECURITY-CREDITS.md](https://github.com/unclecode/crawl4ai/blob/main/SECURITY-CREDITS.md).+Thanks to the community contributors behind the bug fixes in this release: @nightcityblade (#2130, #2131, #2117, #2134, #2081), @weike-zhang (#2148), and @Nalhin (#2163).+If you find a security issue in Crawl4AI, please report it privately. See [SECURITY.md](https://github.com/unclecode/crawl4ai/blob/main/SECURITY.md).## Support & Resources