[BUG] SeleniumScrapingTool has no SSRF protection — LLM-controlled URLs reach private/internal addresses (CVE-2026-112308)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Read lib/crewai-tools/src/crewai_tools/tools/selenium_scraping_tool/selenium_scraping_tool.py and compare its URL handling with the sibling scraping tools that use validate_url from crewai_tools.security.safe_path. The issue describes validation at schema validation, fixed URL construction, and _make_request, with regression tests for private URL rejection. Done means private, loopback, link-local, and reserved addresses are rejected before browser navigation; linked PR #9262 is already open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
SeleniumScrapingTool accepts any http(s) URL and navigates a local headless Chrome to it, with no private/reserved-IP validation:
lib/crewai-tools/src/crewai_tools/tools/selenium_scraping_tool/selenium_scraping_tool.pycontains no call tovalidate_url(the helper increwai_tools.security.safe_paththat sibling tools already use)._make_requestperforms only a^https?://regex check beforeself.driver.get(url).- When the URL is fixed at construction time, the
args_schemais swapped for a Fixed schema without awebsite_urlfield, bypassing format validation as well.
This means an LLM-controlled website_url can reach loopback, RFC1918, link-local, and cloud metadata addresses (e.g. 169.254.169.254) from the host running the crew, and the fetched content is returned into the LLM's output. This is tracked as CVE-2026-112308 (CWE-918; CVSS 3.1 7.4 / 4.0 8.3). The CVE lists affected versions as crewai-tools ≤ 1.15.28, but the code on current main is still unguarded, so later versions appear affected as well.
Other scraping tools in the same package (e.g. FirecrawlScrapeWebsiteTool, ScrapflyScrapeWebsiteTool, and ScrapeWebsiteTool via safe_get) already validate URLs with validate_url before fetching — Selenium is the remaining gap in that cluster.
Prior attempt
PR #6870 (by @SashaMIT) implemented exactly this fix in August 2026, but it was auto-closed on 2026-09-17 with the needs-issue label because, as a first-time-contributor PR, it did not reference an open issue. The fix was never reviewed on its merits and the author did not return to re-file it, so I am opening this issue first, as the contributing process asks. I have a fix ready that follows the same approach (route the URL through validate_url at schema validation, fixed-URL construction, and _make_request, plus regression tests for private-URL rejection) and will open a PR referencing this issue.
Expected behavior
SeleniumScrapingTool should reject URLs that resolve to private, loopback, link-local, or otherwise reserved addresses — consistent with the other scraping tools — before any browser navigation happens.
- Lenguaje dominante
- Python
- Estrellas
- 60.6k
- Forks
- 9.1k
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 214
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de crewAIInc/crewAI
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Feature request: GoldenDirectiveTool (harmonic relationship score, full vs cropped reporting)Abiertofeature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
crewAIInc/crewAI#9200 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[FEATURE] Docs: ApifyActorsTool example with a typed-input ActorPosiblemente ocupada @johnisanerd la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
crewAIInc/crewAI#9132 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] Scrape tools reject the documented cookies mapping and drop cookies when the URL is passed at runtimePosiblemente ocupada @Luckyou-d la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionPosiblemente ocupada @gokay-ai la tomó hace 12 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
crewAIInc/crewAI#8761 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de crewAIInc/crewAI
Issues similares
-
physical
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
antonyrag/ragleap-core#1339 ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
AllenCell/SubCellSeg#5 ·
-
[🐛 Bug]: oidc_authverifier.py strips trailing slash causing "Invalid token: Invalid issuer" errorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
keephq/keep#6934 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug game: 01008BA02525A000 ios
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
gke-labs/kube-agents#5501 ·
Los mantenedores suelen responder en 1 día