WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers
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. The 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. This issue affects req_llm: from 1.9.0 before 1.29.0.
CVE-2026-107685
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-107685
req_llm
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
req_llm
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"cpes": [
"cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/agentjido/req_llm",
"vendor": "agentjido",
"modules": [
"'Elixir.ReqLLM.Streaming.WebSocketSession.Client'",
"'Elixir.ReqLLM.Streaming.WebSocketSession'",
"'Elixir.ReqLLM.Providers.OpenAI.WebSocket'",
"'Elixir.ReqLLM.OpenAI.Realtime'",
"'Elixir.ReqLLM.Providers.OpenAICodex'"
],
"product": "req_llm",
"versions": [
{
"status": "affected",
"version": "1.9.0",
"lessThan": "1.29.0",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/req_llm",
"packageName": "req_llm",
"programFiles": [
"lib/req_llm/streaming/web_socket_session/client.ex",
"lib/req_llm/streaming/web_socket_session.ex",
"lib/req_llm/providers/openai/web_socket.ex",
"lib/req_llm/openai/realtime.ex",
"lib/req_llm/providers/openai_codex.ex"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession.Client':start/3"
},
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession':start_link/2"
},
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession':init/1"
},
{
"name": "'Elixir.ReqLLM.Providers.OpenAI.WebSocket':start_responses_session/2"
},
{
"name": "'Elixir.ReqLLM.OpenAI.Realtime':connect/2"
},
{
"name": "'Elixir.ReqLLM.Providers.OpenAICodex':start_responses_session/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/agentjido/req_llm",
"vendor": "agentjido",
"modules": [
"'Elixir.ReqLLM.Streaming.WebSocketSession.Client'",
"'Elixir.ReqLLM.Streaming.WebSocketSession'",
"'Elixir.ReqLLM.Providers.OpenAI.WebSocket'",
"'Elixir.ReqLLM.OpenAI.Realtime'",
"'Elixir.ReqLLM.Providers.OpenAICodex'"
],
"product": "req_llm",
"versions": [
{
"status": "affected",
"version": "a389d718640ceb2d541a8f540ab954cbf5ef8313",
"lessThan": "c7264fc0217fbacfb5562234ff790b8e4462de76",
"versionType": "git"
}
],
"packageURL": "pkg:github/agentjido/req_llm",
"packageName": "agentjido/req_llm",
"programFiles": [
"lib/req_llm/streaming/web_socket_session/client.ex",
"lib/req_llm/streaming/web_socket_session.ex",
"lib/req_llm/providers/openai/web_socket.ex",
"lib/req_llm/openai/realtime.ex",
"lib/req_llm/providers/openai_codex.ex"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession.Client':start/3"
},
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession':start_link/2"
},
{
"name": "'Elixir.ReqLLM.Streaming.WebSocketSession':init/1"
},
{
"name": "'Elixir.ReqLLM.Providers.OpenAI.WebSocket':start_responses_session/2"
},
{
"name": "'Elixir.ReqLLM.OpenAI.Realtime':connect/2"
},
{
"name": "'Elixir.ReqLLM.Providers.OpenAICodex':start_responses_session/2"
}
]
}
]- Related CVEs
- CVE-2026-107685
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #52690 · Revision 1
- Added to Heist Feed
- Publisher date