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 GHSA ids for the v0.9.5 advisories
ntohidi31ab16df075f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6ba2b5c3..f83671ec 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,12 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Security-- **Blind SSRF via the cache freshness check (CWE-918, medium)**: `CacheValidator.validate()` sent its HEAD and GET requests on its own HTTP client, outside the Docker server's pinning egress proxy. It now goes through the proxy like the seeder and robots.txt fetches fixed in 0.9.4. Credit: [arpe1618](https://github.com/arpe1618). (GHSA-PENDING-1)-- **Page JavaScript injection via `css_selector` and `wait_for` (CWE-95, medium)**: `css_selector` was pasted into a JavaScript string, and `wait_for` could run as page script, so an untrusted body could run JavaScript in the crawl page even though `js_code` is refused. `css_selector` is now passed to `evaluate()` as an argument, which also makes selectors with quotes work. For untrusted bodies, JavaScript `wait_for` values are refused and a bare value is treated as a CSS selector. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-PENDING-2)-- **Caller-chosen model in `CosineStrategy` (CWE-502, high)**: an untrusted body could set `CosineStrategy.model_name`, so the server downloaded and loaded any HuggingFace repository. With PyTorch older than 2.6 a crafted pickle weight file runs code in the server. `model_name` is now refused from untrusted bodies. The default image does not install PyTorch and is not affected. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-PENDING-3)-- **ReDoS via caller-supplied regexes (CWE-1333, medium)**: `RegexExtractionStrategy.custom`, `RegexChunking.patterns`, and `"type": "regex"` fields in extraction schemas let a client send a catastrophic-backtracking pattern. Python's `re` holds the GIL while it matches, so one request froze the whole server. These fields are now refused from untrusted bodies. The built-in patterns stay available. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-PENDING-4)-- **Unbounded delay fields (CWE-770, medium)**: `delay_before_return_html`, `mean_delay`, and `max_range` were allowed in untrusted bodies with no upper bound, so one request could hold a browser page or stall the rate limiter. They are now capped at 60 seconds, and negative, NaN, and non-numeric values fall back to the default. Credit: Chunyi Liu. (GHSA-PENDING-5)-- **Chromium launched with certificate checks off (CWE-295, medium)**: both default launch flag lists carried `--ignore-certificate-errors`, so `ignore_https_errors=False` and the Docker server's TLS-on default had no effect. The flag is gone; insecure mode now comes only from `ignore_https_errors`. `CRAWL4AI_CHROMIUM_SANDBOX=true` now reaches every browser, including ones built from a request body. Credit: Julian Godfrey. (GHSA-PENDING-6)+- **Blind SSRF via the cache freshness check (CWE-918, medium)**: `CacheValidator.validate()` sent its HEAD and GET requests on its own HTTP client, outside the Docker server's pinning egress proxy. It now goes through the proxy like the seeder and robots.txt fetches fixed in 0.9.4. Credit: [arpe1618](https://github.com/arpe1618). (GHSA-w4xc-px5p-c32w)+- **Page JavaScript injection via `css_selector` and `wait_for` (CWE-95, medium)**: `css_selector` was pasted into a JavaScript string, and `wait_for` could run as page script, so an untrusted body could run JavaScript in the crawl page even though `js_code` is refused. `css_selector` is now passed to `evaluate()` as an argument, which also makes selectors with quotes work. For untrusted bodies, JavaScript `wait_for` values are refused and a bare value is treated as a CSS selector. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-qj46-wp7m-rgj8)+- **Caller-chosen model in `CosineStrategy` (CWE-502, high)**: an untrusted body could set `CosineStrategy.model_name`, so the server downloaded and loaded any HuggingFace repository. With PyTorch older than 2.6 a crafted pickle weight file runs code in the server. `model_name` is now refused from untrusted bodies. The default image does not install PyTorch and is not affected. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-f856-7xp9-w3cc)+- **ReDoS via caller-supplied regexes (CWE-1333, medium)**: `RegexExtractionStrategy.custom`, `RegexChunking.patterns`, and `"type": "regex"` fields in extraction schemas let a client send a catastrophic-backtracking pattern. Python's `re` holds the GIL while it matches, so one request froze the whole server. These fields are now refused from untrusted bodies. The built-in patterns stay available. Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)). (GHSA-j843-8p47-rhxp)+- **Unbounded delay fields (CWE-770, medium)**: `delay_before_return_html`, `mean_delay`, and `max_range` were allowed in untrusted bodies with no upper bound, so one request could hold a browser page or stall the rate limiter. They are now capped at 60 seconds, and negative, NaN, and non-numeric values fall back to the default. Credit: Chunyi Liu. (GHSA-rhjm-7hj7-75fx)+- **Chromium launched with certificate checks off (CWE-295, medium)**: both default launch flag lists carried `--ignore-certificate-errors`, so `ignore_https_errors=False` and the Docker server's TLS-on default had no effect. The flag is gone; insecure mode now comes only from `ignore_https_errors`. `CRAWL4AI_CHROMIUM_SANDBOX=true` now reaches every browser, including ones built from a request body. Credit: Julian Godfrey. (GHSA-j2qh-f73r-mg3q)Hardening, no advisory (credit: Chunyi Liu):diff --git a/SECURITY.md b/SECURITY.mdindex f0d9a824..9ff73982 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -100,12 +100,12 @@ All issues below are fixed in the version named. Advisories with a GHSA id are p| ID | Severity | Component | Description | Fix ||----|----------|-----------|-------------|-----|-| GHSA-PENDING-1 | MEDIUM | Library + Docker API | Blind SSRF via the cache freshness check in `CacheValidator.validate`, outside the egress proxy (CWE-918) | Fetch routed through the pinning egress proxy |-| GHSA-PENDING-2 | MEDIUM | Docker API | Page JavaScript injection via untrusted `css_selector` and `wait_for` (CWE-95) | `css_selector` passed to `evaluate()` as an argument; JavaScript `wait_for` refused for untrusted bodies |-| GHSA-PENDING-3 | HIGH | Docker API | Untrusted `CosineStrategy.model_name` picks the HuggingFace model the server loads; code execution with PyTorch < 2.6 (CWE-502) | `model_name` refused from untrusted bodies |-| GHSA-PENDING-4 | MEDIUM | Docker API | ReDoS via caller-supplied regex patterns freezes the server (CWE-1333) | `RegexExtractionStrategy.custom`, `RegexChunking.patterns`, and schema `regex` fields refused from untrusted bodies |-| GHSA-PENDING-5 | MEDIUM | Docker API | Unbounded `delay_before_return_html`, `mean_delay`, `max_range` in untrusted bodies (CWE-770) | Capped at 60 seconds |-| GHSA-PENDING-6 | MEDIUM | Library + Docker API | Chromium launched with `--ignore-certificate-errors`, so TLS verification was off; sandbox opt-in ignored (CWE-295) | Flag removed; insecure mode only from `ignore_https_errors`; `CRAWL4AI_CHROMIUM_SANDBOX` reaches every browser |+| GHSA-w4xc-px5p-c32w | MEDIUM | Library + Docker API | Blind SSRF via the cache freshness check in `CacheValidator.validate`, outside the egress proxy (CWE-918) | Fetch routed through the pinning egress proxy |+| GHSA-qj46-wp7m-rgj8 | MEDIUM | Docker API | Page JavaScript injection via untrusted `css_selector` and `wait_for` (CWE-95) | `css_selector` passed to `evaluate()` as an argument; JavaScript `wait_for` refused for untrusted bodies |+| GHSA-f856-7xp9-w3cc | HIGH | Docker API | Untrusted `CosineStrategy.model_name` picks the HuggingFace model the server loads; code execution with PyTorch < 2.6 (CWE-502) | `model_name` refused from untrusted bodies |+| GHSA-j843-8p47-rhxp | MEDIUM | Docker API | ReDoS via caller-supplied regex patterns freezes the server (CWE-1333) | `RegexExtractionStrategy.custom`, `RegexChunking.patterns`, and schema `regex` fields refused from untrusted bodies |+| GHSA-rhjm-7hj7-75fx | MEDIUM | Docker API | Unbounded `delay_before_return_html`, `mean_delay`, `max_range` in untrusted bodies (CWE-770) | Capped at 60 seconds |+| GHSA-j2qh-f73r-mg3q | MEDIUM | Library + Docker API | Chromium launched with `--ignore-certificate-errors`, so TLS verification was off; sandbox opt-in ignored (CWE-295) | Flag removed; insecure mode only from `ignore_https_errors`; `CRAWL4AI_CHROMIUM_SANDBOX` reaches every browser |### Fixed in v0.9.4 (2026-09-23)diff --git a/docs/blog/release-v0.9.5.md b/docs/blog/release-v0.9.5.mdindex 158af27b..13959dd0 100644--- a/docs/blog/release-v0.9.5.md+++ b/docs/blog/release-v0.9.5.md@@ -25,13 +25,13 @@ If you self-host the Docker server, upgrade.### Blind SSRF via the cache freshness check-**GHSA-PENDING-1, CWE-918, medium.** Credit: [arpe1618](https://github.com/arpe1618).+**GHSA-w4xc-px5p-c32w, CWE-918, medium.** Credit: [arpe1618](https://github.com/arpe1618).`check_cache_freshness` is allowed in an untrusted body. `CacheValidator` built its own `httpx` client without the egress proxy, so a client could make the server send HEAD and GET requests to internal addresses, directly or through a redirect. This is the same root cause as the robots.txt and seeder fixes in 0.9.4: one more library HTTP client without `proxy=proxy_url()`. It now uses the proxy. A plain library caller sees no change.### Page JavaScript injection via css_selector and wait_for-**GHSA-PENDING-2, CWE-95, medium.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).+**GHSA-qj46-wp7m-rgj8, CWE-95, medium.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).Untrusted bodies may not send `js_code`. But two allowed fields reached the same `page.evaluate()` sink:@@ -42,7 +42,7 @@ Untrusted bodies may not send `js_code`. But two allowed fields reached the same### Caller-chosen HuggingFace model in CosineStrategy-**GHSA-PENDING-3, CWE-502, high.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).+**GHSA-f856-7xp9-w3cc, CWE-502, high.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).`CosineStrategy` is allowed in an untrusted body, and its `model_name` was not filtered. The server passed it to `from_pretrained()`, so a client chose which repository the server downloaded and loaded. With PyTorch older than 2.6, a crafted pickle weight file runs code in the server process. With current PyTorch the code does not run, but the client still controls what the server downloads and keeps in memory.@@ -50,19 +50,19 @@ Untrusted bodies may not send `js_code`. But two allowed fields reached the same### ReDoS via caller-supplied regexes-**GHSA-PENDING-4, CWE-1333, medium.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).+**GHSA-j843-8p47-rhxp, CWE-1333, medium.** Credit: Zhixi "Jace" Sun ([manus-use](https://github.com/manus-use)).`RegexExtractionStrategy.custom`, `RegexChunking.patterns`, and `"type": "regex"` fields in extraction schemas took a pattern from the caller. Python's `re` holds the GIL while it matches, so one catastrophic-backtracking pattern froze the whole server, and the crawl deadline could not interrupt it. These fields are now refused from untrusted bodies. The built-in patterns stay available.### Unbounded delay fields-**GHSA-PENDING-5, CWE-770, medium.** Credit: Chunyi Liu.+**GHSA-rhjm-7hj7-75fx, CWE-770, medium.** Credit: Chunyi Liu.`delay_before_return_html`, `mean_delay`, and `max_range` are allowed in untrusted bodies, but had no ceiling. One request could hold a browser page open, or stall the `arun_many` rate limiter, for as long as it liked. They are now capped at 60 seconds. Negative, NaN, and non-numeric values fall back to the field default.### Chromium launched with certificate checks off-**GHSA-PENDING-6, CWE-295, medium.** Credit: Julian Godfrey.+**GHSA-j2qh-f73r-mg3q, CWE-295, medium.** Credit: Julian Godfrey.Both default Chromium launch flag lists carried `--ignore-certificate-errors`. That flag turns TLS verification off for the whole browser, so `ignore_https_errors=False`, and the Docker server's TLS-on default, had no effect.