Skip to content
Heist/ feed
Back to feed
Critical

WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-107685
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:34 UTC · Revision 1

Source evidence

WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers

core-osv · Original source

Published 23 Oct 2026, 11:00 UTC

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.

osv:CVE-2026-107685
Complete source record
{
  "id": "4b8a1cef5009ba208e0ded287b2a2e6e2b6edc8f446ff07a0963817e00006c01",
  "url": "https://osv.dev/vulnerability/CVE-2026-107685",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "WebSocket sessions do not verify TLS certificates, exposing API keys and OAuth tokens to on-path attackers",
    "summary": "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.",
    "evidence": "osv:CVE-2026-107685",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-107685",
      "aliases": [
        "CVE-2026-107685",
        "EEF-CVE-2026-107685",
        "GHSA-6vww-5m28-f26v"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/agentjido/req_llm",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a389d718640ceb2d541a8f540ab954cbf5ef8313"
                },
                {
                  "fixed": "c7264fc0217fbacfb5562234ff790b8e4462de76"
                },
                {
                  "introduced": "d9bc3b566b2258b99241fae7a123fe44c3ca750b"
                },
                {
                  "fixed": "00a9ec987ce8af2dcc0563ce3de5765391e415ba"
                },
                {
                  "fixed": "a389d718640ceb2d541a8f540ab954cbf5ef8313"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "a389d718640ceb2d541a8f540ab954cbf5ef8313"
                      },
                      {
                        "fixed": "c7264fc0217fbacfb5562234ff790b8e4462de76"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.9.0"
                      },
                      {
                        "fixed": "1.29.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a389d718640ceb2d541a8f540ab954cbf5ef8313"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c7264fc0217fbacfb5562234ff790b8e4462de76"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.28.0",
            "v1.27.0",
            "v1.26.0",
            "v1.25.0",
            "v1.24.0",
            "v1.23.0",
            "v1.22.0",
            "v1.21.1",
            "v1.21.0",
            "v1.20.0",
            "v1.19.0",
            "v1.18.0",
            "v1.17.1",
            "v1.17.0",
            "v1.16.0",
            "v1.15.0",
            "v1.14.0",
            "v1.13.0",
            "v1.12.0",
            "v1.11.0",
            "v1.10.0",
            "v1.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107685.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.785889893Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-107685.html",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-107685",
        "https://repo.hex.pm",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107685.json",
        "https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-107685",
        "https://github.com/agentjido/req_llm/commit/a389d718640ceb2d541a8f540ab954cbf5ef8313",
        "https://github.com/agentjido/req_llm/commit/c7264fc0217fbacfb5562234ff790b8e4462de76",
        "https://github.com/agentjido/req_llm"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-295"
        ],
        "cna_assigner": "EEF",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107685.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-107685",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513906,
  "published_at": "2026-10-23T11:00:38.975+00:00"
}