An API request with declarative browser hooks could attach custom headers, navigation modifications or page handlers to a pooled crawler. The hook objects were not cleared at the end of that request, so a later caller's crawl could carry the previous caller's Authorization headers or scripted behavior. Researchers report cross-request state persistence in…
Inspect the ClaimsCase · DiggingBeagle record
Crawl4AI declarative hooks persisted headers into subsequent callers’ crawls
Researchers report cross-request state persistence in a controlled test and a 0.
Published by DiggingBeagle:
Crawl4AI Docker server through 0.9.5, declarative hooks enabled, and one crawler instance reused between distinct client calls.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The cited primary source supports the stated mechanism and scoped outcome. Impact band remains unrated because no calibrated victim exposure or severity distribution is established by the cited evidence.
Assessed Nov 22, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV22-CRAWL4AI-CROSS-USER-HOOKS-MECHANISM · CLM-2026-NOV22-CRAWL4AI-CROSS-USER-HOOKS-SCOPE · Crawl4AI advisory: browser hooks outlived the request that supplied them
At a glance
This bug is distinct from reusing ordinary cookies: the attacker-controlled execution hooks themselves survive a caller boundary. Clearing hooks at request completion and testing with two principals limits the failure without assuming each crawl gets its own browser binary.
Read the implicationsThe disclosure is not evidence of successful field exfiltration, and deployments without the hooks feature may not meet the prerequisites.
Limits and uncertaintyFull account
An API request with declarative browser hooks could attach custom headers, navigation modifications or page handlers to a pooled crawler. The hook objects were not cleared at the end of that request, so a later caller's crawl could carry the previous caller's Authorization headers or scripted behavior.
Researchers report cross-request state persistence in a controlled test and a 0.9.6 fix. This differs from cookie-store isolation: the earlier requester supplied an active hook that changed the later request. The critical boundary is per-request agent execution instructions escaping their intended tenancy and remaining active in a shared worker.
The documented repair is reset all declarative hooks at request completion and assert that cross-user headers are absent after worker reuse. The disclosure is not evidence of successful field exfiltration, and deployments without the hooks feature may not meet the prerequisites.
Mechanism and trust boundary
- 01
Install request-specific browser hooks
A permitted crawler client supplies declarative hooks that add headers or modify subsequent browser request behavior.
Boundary: Caller-owned instructions enter a shared browser worker
- 02
Persist hook objects after the request
The pooled crawler retains the hooks instead of clearing them when the first API request finishes.
Boundary: Temporary per-request configuration becomes reusable global worker state
- 03
A later caller inherits earlier behavior
The next client’s crawl can receive the earlier headers or script logic, including sensitive Authorization values, in the reported controlled test.
Boundary: Cross-user credential or content contamination
Claims & evidence
CLM-2026-NOV22-CRAWL4AI-CROSS-USER-HOOKS-SCOPEResearchers report cross-request state persistence in a controlled test and a 0.9.6 fix. This differs from cookie-store isolation: the earlier requester supplied an active hook that changed the later request.supported
Basis: reported finding
- supportsCrawl4AI advisory: browser hooks outlived the request that supplied themprimary disclosure
Primary advisory or study: reproduction, results and limitations
CLM-2026-NOV22-CRAWL4AI-CROSS-USER-HOOKS-MECHANISMAn API request with declarative browser hooks could attach custom headers, navigation modifications or page handlers to a pooled crawler. The hook objects were not cleared at the end of that request, so a later caller's crawl could carry the previous caller's Authorization headers or scripted behavior.supported
Basis: reported finding
- supportsCrawl4AI advisory: browser hooks outlived the request that supplied themprimary disclosure
Primary advisory or study: technical mechanism and affected component
- supportsCrawl4AI advisory: browser hooks outlived the request that supplied themprimary disclosure
GHSA-x4gh-gvcx-p9gp: declarative hooks retained by pooled Docker crawler across callers
Implications
This bug is distinct from reusing ordinary cookies: the attacker-controlled execution hooks themselves survive a caller boundary. Clearing hooks at request completion and testing with two principals limits the failure without assuming each crawl gets its own browser binary.
Controls and mitigations
- reset all declarative hooks at request completion and assert that cross-user headers are absent after worker reuse
Unknowns and contradictions
- The disclosure is not evidence of successful field exfiltration, and deployments without the hooks feature may not meet the prerequisites.
Sources and citation
Material revision history
- Nov 22, 2026 · Published version · first publication · revision 275