{"id":"CVE-2026-107685","published":"2026-10-23T11:00:38Z","modified":"2026-11-19T08:12:13Z","title":"WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers","vendor":"agentjido","product":"req_llm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00273,"percentile":0.20182,"provenance":"source"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-107685.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-107685","tags":["related"]},{"url":"https://github.com/agentjido/req_llm/commit/a389d718640ceb2d541a8f540ab954cbf5ef8313","tags":["related"]},{"url":"https://github.com/agentjido/req_llm/commit/c7264fc0217fbacfb5562234ff790b8e4462de76","tags":["patch"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":4.04},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"agentjido","affectedVersions":[{"vendor":"agentjido","product":"req_llm","versions":[">= 1.9.0, < 1.29.0"]},{"vendor":"agentjido","product":"req_llm","versions":[">= a389d718640ceb2d541a8f540ab954cbf5ef8313, < c7264fc0217fbacfb5562234ff790b8e4462de76"]}],"workarounds":{"items":["Leave the openai_stream_transport provider option at its default :sse for the OpenAI and OpenAI Codex providers, and do not call ReqLLM.Providers.OpenAI.WebSocket.start_responses_session/2 directly. Responses streaming then runs over HTTP through Finch, which verifies certificates. ReqLLM.OpenAI.Realtime.connect/2 has no HTTP alternative, so do not use it on an affected version."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-94","name":"An attacker on the network path between an application and the OpenAI endpoint presents their own certificate, obtains the OpenAI API key or OAuth access token and the full session content, and can alter model output and tool calls before the application acts on them. Every application that uses the OpenAI Responses, Realtime, or Codex WebSocket paths is affected."}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T15:22:34.733406Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-108709","exploited":false,"provenance":"source"}}