Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Docker API with valid token
-
ExploitSubmit css_selector with quote or wait_for js: payload
-
ExecutionPayload reaches page.evaluate() sink
-
ImpactArbitrary JS runs in crawl page, altering returned content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid API token to a Crawl4AI Docker API server running an affected version (0.9.0-0.9.4), even under default settings - this is the deployment mode gate, since the library used directly is not affected unless an application itself feeds untrusted input into css_selector or wait_for. The attacker must submit a crawler_config CrawlerRunConfig whose css_selector contains a double-quote (which closes the interpolated string literal) or whose wait_for value begins with 'js:' (or has no css:/known prefix, which falls back to JavaScript). Limiting factors that reduce real-world risk: authentication is required (PR:L, valid token); the injected JavaScript is confined to the Chromium browser sandbox and the origin of the crawled URL, with no access to the server process, filesystem, or environment; and the server's pinning egress proxy blocks in-page fetch() to internal, private, and cloud-metadata addresses. |
| Impact | This is a moderate-severity authorization-boundary bypass, not a server compromise, and the signals are internally consistent at the lower end. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 5.3 and shows only integrity impact to the vulnerable system (VI:L) with VC:N/VA:N and all subsequent-system metrics N, matching the advisory's statement that injected code stays inside the Chromium browser sandbox and cannot reach the server process, filesystem, or environment. PR:L confirms an authenticated API client is required, so this is an authenticated issue, and the vuln.today Decision label is 'this_month' rather than act_now or emergency. A proof-of-concept is published in the GHSA advisory (working curl commands for both the css_selector and wait_for vectors), but there is no CISA KEV listing and no EPSS score in the input, so there is no evidence of active exploitation and no modeled exploitation probability to weigh. The 'RCE' tag overstates the real impact: the advisory explicitly scopes this to in-browser JavaScript with an egress proxy that blocks internal, private, and cloud-metadata addresses, so it is not remote code execution on the host. Net priority: real but low-to-moderate - a privilege/policy bypass that lets an authenticated-but-untrusted caller alter crawled page content, worth patching on a normal cycle rather than as an emergency. |
| Exploit ScenarioDerived | An authenticated but untrusted client of a Crawl4AI Docker API server (0.9.0-0.9.4) submits a crawler_config whose css_selector contains a double-quote, or whose wait_for value is prefixed with 'js:'. Both fields are on the untrusted allowlist but reach page.evaluate(), so the attacker's JavaScript runs in the Chromium crawl page, bypassing the server's js_code block to alter page state and the content returned to the caller. Working proof-of-concept curl commands for both vectors are published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Crawl4AI's Docker API server in versions 0.9.0 through 0.9.4 lets any client holding a valid API token run arbitrary JavaScript inside the Chromium page the server uses for crawling, by smuggling script through two fields that the untrusted-input allowlist still permits: a css_selector containing a double quote, which closes the interpolated string literal before page.evaluate(), and a wait_for value beginning with 'js:' (or an unprefixed value that falls back to JavaScript). This defeats the js_code block introduced in 0.9.0 and allows the caller to alter page state and the crawl content returned from the origin of any URL it asks the server to fetch. Impact is integrity-only (CVSS 5.3, PR:L, I:L): the script remains inside the browser sandbox with no reach into the server process, filesystem or environment, and the server's pinning egress proxy blocks in-page fetch() to internal, private and cloud-metadata addresses; the vendor advisory publishes reproduction requests for both paths and the issue is fixed in 0.9.5.
RemediationAI
Vendor-released patch: 0.9.5 - upgrade the crawl4ai package and rebuild or repull the Docker image, since 0.9.5 both passes css_selector as an argument instead of script text and refuses js:-, ()- or function-prefixed wait_for values from untrusted bodies. If upgrading immediately is not possible, the vendor's compensating control is to reject at the reverse proxy any crawler_config request body whose css_selector contains a double quote or whose wait_for value is not prefixed with css:, which restores the intended boundary at the cost of breaking legitimate quoted selectors such as p[title="x"] and any legitimate JavaScript wait conditions your trusted clients rely on. Additionally, issue API tokens only to trusted clients and keep the /execute_js endpoint disabled (it is off by default), since the proxy rule and token scoping both become moot for any caller who legitimately holds an execution primitive. No public exploit package beyond the advisory's reproduction requests is identified, and no CISA KEV listing or active-exploitation reporting is associated with this CVE.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Crawl4AI is a Python web-crawling library that drives Chromium through Playwright, and the Docker API server wraps it with a policy that untrusted request bodies may not supply page JavaScript - js_code, js_code_before_wait and c4a_script are all blocked. The root cause is CWE-95 (eval injection) combined with a field-name-only authorization check: UNTRUSTED_FIELD_ALLOWLIST["CrawlerRunConfig"] in crawl4ai/async_configs.py validates which keys are present but not their contents. In AsyncPlaywrightCrawlerStrategy._crawl_web() (crawl4ai/async_crawler_strategy.py) each comma-separated part of css_selector is interpolated into an f-string of the form Array.from(document.querySelectorAll("{selector"))... and then evaluated, so an embedded double quote terminates the string literal and the remainder executes as page script. Separately, AsyncPlaywrightCrawlerStrategy.smart_wait() executes any wait_for value starting with js: as a JavaScript function by design, and additionally falls back to JavaScript execution for values without a recognized prefix. The 0.9.5 fix passes css_selector to the page as an argument rather than as script text (which also repairs legitimate quoted selectors such as p[title="x"]), and for untrusted bodies refuses wait_for values starting with js:, () or function while treating every other value as a css: selector that never degrades into JavaScript.
Know when Crawl4ai gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Authenticated API client (PR:L) over the network with low complexity; impact limited to integrity of returned crawl content (I:L), sandboxed with no confidentiality/availability impact and no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Crawl4AI from 0.9.0 before 0.9.5 contains a JavaScript injection vulnerability in the Docker API server that allows authenticated API clients to run arbitrary JavaScript in the crawl page via allowlisted css_selector and wait_for fields. Attackers can inject quotes into css_selector or supply js: conditions in wait_for, bypassing the js_code block to alter page state and returned crawl content.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in Crawl4AI Docker API before 0.8.0 via hooks parameter. The /crawl endpoint accepts Python code i
Authentication bypass in Crawl4AI Docker API server (versions prior to 0.8.7) allows remote unauthenticated attackers to
Arbitrary local file disclosure in Crawl4AI's Docker API (versions before 0.8.0) lets unauthenticated remote attackers r
Server-side request forgery in Crawl4AI's Docker API server (versions prior to 0.9.0) lets a remote unauthenticated clie
Remote code execution in Crawl4AI's Docker API server (versions prior to 0.9.0) lets unauthenticated attackers run arbit
Arbitrary file write in Crawl4AI (the open-source LLM-friendly web crawler by unclecode) before version 0.9.0 lets a mal
Arbitrary file write in Crawl4AI Docker API server before 0.8.8 lets unauthenticated remote attackers escape the ALLOWED
Arbitrary JavaScript execution in Crawl4AI's Docker API server (versions before 0.8.7) lets remote attackers submit code
Server-side request forgery in Crawl4AI's Docker API server (versions before 0.8.7) allows remote unauthenticated attack
Server-side request forgery in Crawl4AI (unclecode) versions 0.7.0 through 0.9.3 lets unauthenticated, remote API client
Server-side request forgery in Crawl4AI before 0.8.7 allows unauthenticated remote attackers to coerce the server into f
Crawl4AI <=0.4.247 is vulnerable to SSRF in /crawl4ai/async_dispatcher.py. Rated critical severity (CVSS 9.1), this vuln
EUVD-2026-113188
GHSA-6fxw-998x-jq4q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB