{"id":"CVE-2026-107685","revision":null,"records":[{"revision":"0f2c87709e88475c883ea92e8b61f504","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-107685","aliases":[],"title":"WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers","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.","state":0,"publishedAt":"2026-10-23T11:00:38.975+00:00","modifiedAt":"2026-10-23T11:00:38.975+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"req_llm","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.ReqLLM.Streaming.WebSocketSession.Client'\",\n                        \"'Elixir.ReqLLM.Streaming.WebSocketSession'\",\n                        \"'Elixir.ReqLLM.Providers.OpenAI.WebSocket'\",\n                        \"'Elixir.ReqLLM.OpenAI.Realtime'\",\n                        \"'Elixir.ReqLLM.Providers.OpenAICodex'\"\n                    ],\n                    \"packageName\": \"req_llm\",\n                    \"packageURL\": \"pkg:hex/req_llm\",\n                    \"product\": \"req_llm\",\n                    \"programFiles\": [\n                        \"lib/req_llm/streaming/web_socket_session/client.ex\",\n                        \"lib/req_llm/streaming/web_socket_session.ex\",\n                        \"lib/req_llm/providers/openai/web_socket.ex\",\n                        \"lib/req_llm/openai/realtime.ex\",\n                        \"lib/req_llm/providers/openai_codex.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession.Client':start/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession':start_link/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession':init/1\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Providers.OpenAI.WebSocket':start_responses_session/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.OpenAI.Realtime':connect/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Providers.OpenAICodex':start_responses_session/2\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/agentjido/req_llm\",\n                    \"vendor\": \"agentjido\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"1.29.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.9.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"agentjido/req_llm","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.ReqLLM.Streaming.WebSocketSession.Client'\",\n                        \"'Elixir.ReqLLM.Streaming.WebSocketSession'\",\n                        \"'Elixir.ReqLLM.Providers.OpenAI.WebSocket'\",\n                        \"'Elixir.ReqLLM.OpenAI.Realtime'\",\n                        \"'Elixir.ReqLLM.Providers.OpenAICodex'\"\n                    ],\n                    \"packageName\": \"agentjido/req_llm\",\n                    \"packageURL\": \"pkg:github/agentjido/req_llm\",\n                    \"product\": \"req_llm\",\n                    \"programFiles\": [\n                        \"lib/req_llm/streaming/web_socket_session/client.ex\",\n                        \"lib/req_llm/streaming/web_socket_session.ex\",\n                        \"lib/req_llm/providers/openai/web_socket.ex\",\n                        \"lib/req_llm/openai/realtime.ex\",\n                        \"lib/req_llm/providers/openai_codex.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession.Client':start/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession':start_link/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Streaming.WebSocketSession':init/1\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Providers.OpenAI.WebSocket':start_responses_session/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.OpenAI.Realtime':connect/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.ReqLLM.Providers.OpenAICodex':start_responses_session/2\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/agentjido/req_llm\",\n                    \"vendor\": \"agentjido\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"c7264fc0217fbacfb5562234ff790b8e4462de76\",\n                            \"status\": \"affected\",\n                            \"version\": \"a389d718640ceb2d541a8f540ab954cbf5ef8313\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":9.1,"severity":"CRITICAL"}],"references":["https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v","https://cna.erlef.org/cves/CVE-2026-107685.html","https://osv.dev/vulnerability/EEF-CVE-2026-107685","https://github.com/agentjido/req_llm/commit/a389d718640ceb2d541a8f540ab954cbf5ef8313","https://github.com/agentjido/req_llm/commit/c7264fc0217fbacfb5562234ff790b8e4462de76"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-107685","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-107685","identifiers":["CVE-2026-107685"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-27T06:23:11.1755366+00:00","complete":true,"records":1758,"lastAttemptAt":"2026-10-27T06:23:11.1755366+00:00","lastSuccessAt":"2026-10-27T06:23:11.3565583+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:11.3565593+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-187d2b72c94ceb8c4417f1032ec3109a3a3a7b730abadb561d8cdd2a96e04d27-d89028bfe484b9f2f1584c390248bf5d4aaf0d2d77cee1f0194aa28f589e2a1c","complete":true,"records":414861,"lastAttemptAt":"2026-10-27T06:23:10.0360294+00:00","lastSuccessAt":"2026-10-27T06:23:10.0059652+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:10.0360294+00:00","snapshotPublishedAt":"2026-10-27T05:33:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-43321610382942b8ad8c85917eab1546","complete":false,"records":4735,"lastAttemptAt":"2026-10-27T06:23:43.0819677+00:00","lastSuccessAt":"2026-10-24T23:18:49.862+00:00","error":"InvalidDataException","lastVerifiedAt":"2026-10-24T23:18:49.862+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":0,"expectedIdentifiers":13477},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-27T06:23:11.1755366+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-27T06:23:11.1755366+00:00","lastSuccessAt":"2026-10-27T06:23:11.3582007+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:11.358201+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-aabec971d7d04375928662238d3061aa","complete":false,"records":13416,"lastAttemptAt":"2026-10-27T06:23:41.1678372+00:00","lastSuccessAt":"2026-10-27T06:23:41.164+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:41.164+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13077,"expectedIdentifiers":13477},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c3121b113ecd88f1c92ccfa0ec9757ddc8386e4c12afd2597450b815744f800a","complete":true,"records":9779,"lastAttemptAt":"2026-10-27T06:23:10.673414+00:00","lastSuccessAt":"2026-10-26T15:37:14.3083004+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:10.673414+00:00","snapshotPublishedAt":"2026-10-26T14:48:41+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-bad5d31e7f6a5e3d338e11d8789069b63620a403f927730769688b42f768e4f6","complete":true,"records":1965,"lastAttemptAt":"2026-10-27T06:23:10.0870813+00:00","lastSuccessAt":"2026-10-26T16:35:43.1460623+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:10.0870813+00:00","snapshotPublishedAt":"2026-10-26T16:18:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-a393d8fe0ae8408f3e4cab413b76047090c8e4a3c0a186c79edf33c9a3d3af95","complete":true,"records":2995,"lastAttemptAt":"2026-10-27T06:23:11.0608384+00:00","lastSuccessAt":"2026-10-26T14:35:47.9640893+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:11.0608384+00:00","snapshotPublishedAt":"2026-10-26T14:18:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2c2579bb03487537529e2b647fd2d9950cfc0fec1a9832dba33e322b8dcbe369","complete":true,"records":230812,"lastAttemptAt":"2026-10-27T06:23:10.5680382+00:00","lastSuccessAt":"2026-10-26T21:37:26.5810298+00:00","error":null,"lastVerifiedAt":"2026-10-27T06:23:10.5680382+00:00","snapshotPublishedAt":"2026-10-26T21:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null}]}