Case · 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:

Scope

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.

At a glance

Mechanism and trust boundary

  1. 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

  2. 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

  3. 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

Link to claim
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

Link to claim

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

  1. Nov 22, 2026 · Published version · first publication · revision 275