{"id":"CVE-2026-107685","kind":"vulnerability","aliases":["CVE-2026-107685"],"related":[],"title":"req_llm: WebSocket client skips TLS checks, exposing OpenAI bearer tokens","description":"Improper Certificate Validation vulnerability in the WebSocket streaming client in agentjido req_llm allows an on-path attacker to read and modify OpenAI WebSocket sessions, including the authorization bearer token, via a TLS certificate the client does not trust. ReqLLM.Streaming.WebSocketSession.Client.start/3 in lib/req_llm/streaming/web_socket_session/client.ex starts WebSockex without TLS options, and WebSockex defaults to insecure: true, which connects with verify: :verify_none. The option allowlist also drops any caller-supplied cacerts or ssl_options, so an application cannot turn verification on.\n\nThe OpenAI Responses, Realtime, and Codex WebSocket paths reach this client and send the API key or OAuth access token in the authorization header. HTTP streaming through Finch and the HTTP/2 duplex session through Mint verify certificates and are not affected.\n\nThis issue affects req_llm: from 1.9.0 before 1.29.0.","summary":"The Elixir req_llm library's WebSocket streaming client connects to OpenAI without verifying the server's TLS certificate, and it blocks callers from turning verification on. An attacker on the network path can read and change OpenAI WebSocket sessions and capture the API key or OAuth token sent in the authorization header.","severity":"critical","cvss":9.1,"epss":0.00338,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-tooling","elixir","openai","req-llm","websocket"],"not_affected_if":["http-streaming-only","no-openai-websocket-use"],"how_to_check":"Check the req_llm version in mix.lock: affected if it is from 1.9.0 before 1.29.0 and the app uses the OpenAI Responses, Realtime, or Codex WebSocket paths.","fix":"Upgrade req_llm to 1.29.0 or later, then rotate any OpenAI API keys or OAuth tokens that were sent over these WebSocket paths.","status":"open","published_at":"2026-10-23T12:18:06+00:00","first_seen_at":"2026-10-23T21:57:32+00:00","triaged_at":"2026-10-23T22:31:24+00:00","updated_at":"2026-10-25T12:38:51+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-10-23T22:31:24Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade req_llm to 1.29.0 or later, then rotate any OpenAI API keys or OAuth tokens that were sent over these WebSocket paths.","reach":"network","title":"req_llm: WebSocket client skips TLS checks, exposing OpenAI bearer tokens","impact":"high","summary":"The Elixir req_llm library's WebSocket streaming client connects to OpenAI without verifying the server's TLS certificate, and it blocks callers from turning verification on. An attacker on the network path can read and change OpenAI WebSocket sessions and capture the API key or OAuth token sent in the authorization header.","category":"ai-tooling","who_cares":["elixir","req-llm","openai","websocket"],"confidence":0.8,"needs_auth":"unknown","worst_case":"On-path attacker reads and modifies sessions, capturing the bearer token","analyst_note":"Confirm the fixed release and whether the OpenAI WebSocket path is the default or opt-in; see https://nvd.nist.gov/vuln/detail/CVE-2026-107685 and the req_llm changelog.","how_to_check":"Check the req_llm version in mix.lock: affected if it is from 1.9.0 before 1.29.0 and the app uses the OpenAI Responses, Realtime, or Codex WebSocket paths.\nunknown","needs_analyst":true,"not_affected_if":["http-streaming-only","no-openai-websocket-use"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000587,"input_tokens":3170,"output_tokens":540,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-107685':14A,17A '-2026':13A,16A '/3':122C '1.29.0':211C '1.9.0':209C 'access':180C 'affect':202C,205C 'agentjido':90C 'ai':19B 'ai-tool':18B 'allow':93C 'allowlist':144C 'also':145C 'api':70B,176C 'applic':157C 'attack':55B,98C 'author':78B,108C,184C 'bearer':10A,109C 'block':48B 'cacert':151C 'caller':49B,149C 'caller-suppli':148C 'cannot':158C 'captur':68B 'certif':45B,81C,114C,198C 'chang':63B 'check':7A 'client':4A,35B,88C,116C,172C 'codex':167C 'connect':36B,137C 'cve':12A,15A 'default':132C 'drop':146C 'duplex':193C 'elixir':21B,28B 'expos':8A 'finch':189C 'header':79B,185C 'http':186C 'http/2':192C 'improp':80C 'includ':106C 'insecur':134C 'issu':204C 'key':71B,177C 'lib/req_llm/streaming/web_socket_session/client.ex':124C 'librari':31B 'llm':2A,25B,30B,92C,207C 'mint':196C 'modifi':102C 'network':58B 'none':141C 'oauth':73B,179C 'on-path':95C 'openai':9A,22B,38B,64B,103C,163C 'option':129C,143C,154C 'path':59B,97C,169C 'reach':170C 'read':61B,100C 'realtim':165C 'req':1A,24B,29B,91C,206C 'req-llm':23B 'reqllm.streaming.websocketsession.client.start':121C 'reqllm.streaming.websocketsession.client.start/3':120C 'respons':164C 'send':174C 'sent':75B 'server':42B 'session':66B,105C,194C 'skip':5A 'ssl':153C 'start':125C 'stream':34B,87C,187C 'suppli':150C 'tls':6A,44B,113C,128C 'token':11A,74B,110C,181C 'tool':20B 'true':135C 'trust':119C 'turn':51B,159C 'valid':82C 'verif':52B,160C 'verifi':40B,139C,140C,197C 'via':111C 'vulner':83C 'websocket':3A,26B,33B,65B,86C,104C,168C 'websockex':126C,131C 'without':39B,127C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-23T12:18:06+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-107685","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107685","severity":null,"published_at":"2026-10-23T12:18:06+00:00","modified_at":"2026-10-23T19:57:42+00:00","first_seen_at":"2026-10-23T21:57:32+00:00","fetched_at":"2026-10-23T22:29:03+00:00","note":null},{"source":"epss","external_id":"CVE-2026-107685","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107685","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-25T12:38:51+00:00","fetched_at":"2026-10-25T12:38:51+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}