Skip to main content
Vulnerability Database/CVE-2026-112308

CVE-2026-112308: crewai-tools SSRF Vulnerability

CVE-2026-112308 is an SSRF flaw in crewai-tools SeleniumScrapingTool that lets attackers access internal resources through prompt injection. This post covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112308 Overview

CVE-2026-112308 is a server-side request forgery (SSRF) vulnerability in the SeleniumScrapingTool component of crewai-tools through version 1.15.28. The tool invokes headless Chrome against attacker-influenced URLs without applying the validate_url private-address check that other crewai-tools scrapers enforce. Attackers who can shape agent tool input through prompt injection can direct the browser to loopback addresses, RFC1918 ranges, or cloud metadata endpoints. Successful exploitation discloses internal services and short-lived cloud credentials to the calling agent context. The weakness is categorized under CWE-918: Server-Side Request Forgery.

Critical Impact

Prompt-injected agents can retrieve cloud instance metadata and internal HTTP services, exposing IAM credentials and internal data to downstream LLM output.

Affected Products

  • crewai-tools versions up to and including 1.15.28
  • The SeleniumScrapingTool module in crewai_tools/tools/selenium_scraping_tool/selenium_scraping_tool.py
  • CrewAI agent deployments that expose the Selenium scraping tool to LLM-driven tool selection

Discovery Timeline

  • 2026-10-19 - CVE-2026-112308 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112308

Vulnerability Analysis

The SeleniumScrapingTool accepts a URL parameter and loads it in a headless Chrome instance using Selenium. Other scraping tools in the crewai-tools package route URLs through a shared validate_url helper that rejects loopback, link-local, and RFC1918 destinations. The Selenium tool skips this validation entirely and passes the URL directly to driver.get(). Because tool arguments in agentic workflows are frequently derived from LLM output, any upstream prompt injection becomes a controllable SSRF primitive. The browser then renders the attacker-chosen target and returns the response body into the agent's reasoning context, where it is often summarized to the operator or forwarded to the next tool.

Root Cause

The root cause is a missing authorization check on outbound HTTP destinations. The SeleniumScrapingTool executes driver.get(url) without invoking the private-address allowlist used elsewhere in the codebase. Review the vulnerable implementation in the SeleniumScrapingTool source and the proposed remediation in GitHub Pull Request #6870.

Attack Vector

Exploitation requires network reachability to the agent host and the ability to influence the Selenium tool's URL input, typically through indirect prompt injection in retrieved documents, web pages, or tool outputs consumed earlier in the chain. An attacker instructs the agent to scrape a URL such as http://169.254.169.254/latest/meta-data/iam/security-credentials/ on AWS, or an equivalent metadata endpoint on Azure or GCP. The headless browser retrieves the response and the content is returned to the model, which may echo credentials, internal hostnames, or administrative interface contents into logs or user-visible output. Additional details are available in the VulnCheck SSRF Advisory for CrewAI.

Detection Methods for CVE-2026-112308

Indicators of Compromise

  • Outbound HTTP requests from CrewAI worker hosts to 169.254.169.254, fd00:ec2::254, metadata.google.internal, or 169.254.169.254/metadata/instance on Azure.
  • Headless Chrome user-agent strings issuing requests to RFC1918 addresses or 127.0.0.0/8 that do not correspond to known internal scraping targets.
  • Agent transcripts or tool-call logs containing URLs with private, loopback, or link-local destinations supplied to SeleniumScrapingTool.

Detection Strategies

  • Instrument the agent runtime to log every tool invocation with full arguments and alert when SeleniumScrapingTool receives URLs resolving to non-public addresses.
  • Deploy an egress proxy in front of agent workloads that blocks and logs connections to metadata IPs and private ranges, generating high-fidelity SSRF alerts.
  • Hunt for IAM GetSessionToken or AssumeRole calls originating from unexpected principals shortly after agent activity spikes.

Monitoring Recommendations

  • Forward CrewAI application logs and egress proxy telemetry to a centralized analytics pipeline for correlation with cloud control-plane events.
  • Monitor Chrome/Chromedriver process network activity on agent hosts for connections to link-local and private destinations.
  • Track anomalies in agent tool-call frequency and URL entropy, which often precede successful prompt-injection chains.

How to Mitigate CVE-2026-112308

Immediate Actions Required

  • Disable or remove SeleniumScrapingTool from agent tool registries until a patched release is deployed.
  • Enforce an egress allowlist on CrewAI hosts that denies traffic to 169.254.169.254, 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.
  • Require Instance Metadata Service Version 2 (IMDSv2) on AWS workloads and set the hop limit to 1 to prevent browser-based metadata retrieval.

Patch Information

A fix is proposed in GitHub Pull Request #6870, which routes the Selenium tool's URL through the existing validate_url private-address check. Upgrade to a crewai-tools release that incorporates this change once published and validate the fix by attempting to scrape a loopback URL in a non-production environment.

Workarounds

  • Wrap SeleniumScrapingTool in a custom tool class that invokes validate_url before calling the underlying scraper.
  • Run agent workloads inside a network namespace with no route to metadata services or internal subnets.
  • Apply strict input filters on tool arguments to reject URLs whose hostnames resolve to private, loopback, or link-local addresses before dispatch.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.