AAK-CREWAI-CVE-2026-2286-001: CrewAI RagTool / WebsiteSearchTool SSRF
- Severity
- CRITICAL
- Category
- Transport Security (
transport-security) - Scanner
agent_audit_kit/scanners/crewai_rce_chain.py- Auto-fixable
- No.
- SARIF name
CrewAiRagSsrf
What it detects
RagTool(url=...) / WebsiteSearchTool(url=...) accepts a non-constant URL reachable from an untrusted source without an allow-list / private-network guard. CVE-2026-2286 (CWE-918, CVSS 9.8 CRITICAL per NVD): cloud-metadata or loopback SSRF feeds back into the agent tool-use loop.
How to fix
Wrap every RAG / website URL with agent_audit_kit.sanitizers.crewai.validate_rag_url(url, allowlist=[...]). The helper rejects private IPs after DNS resolution and enforces an explicit hostname allow-list.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-CREWAI-CVE-2026-2286-001
Limitations
Fires on RagTool or WebsiteSearchTool built with a non-constant url, website or web_url (or first positional argument) inside a function whose text contains request.json, request.body, request.args, request.form, request.data, request.values, request.files, event, llm_input, user_input, agent.kickoff(, task.execute( or inputs=, and no validate_rag_url( call. A URL that arrives as an ordinary function parameter (def search(website_url)) carries no marker and is not reported. validate_rag_url itself refuses a URL whose host Node, requests and Rust's url crate read differently from curl, httpx and urlsplit, which keep a backslash inside the authority. It resolves the host to check its addresses and the RAG tool resolves it again to fetch, so a name whose DNS answer changes in between (DNS rebinding) passes the check and is fetched at a private address. A Python file over 512 KB is not read.
References
- CVE: CVE-2026-2286
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation)
- Incidents and advisories: CERT-CC-VU-221883
- CSA AI Controls Matrix (AICM): IVS-04
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-CREWAI-CVE-2026-2286-001.md: the page then shows that text, with the registry reference appended under it.