Context-Inappropriate Capability
Medium
- Confidence
- 95% confidence
- Finding
- The code allows the effective Ollama base URL to be selected from caller-controlled `providerBaseUrl` or `modelBaseUrl`, and later sends the full chat payload, tool definitions, optional custom headers, and potentially a bearer API key to that resolved endpoint. This creates an SSRF/data-exfiltration pathway: if an attacker can influence configuration, they can redirect sensitive prompts, tool schemas, and credentials to an attacker-controlled server.
