← Back to CVE Explorer

CVE-2026-107685

Full vulnerability record from the local CVENow database.

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. 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.

Severity
CRITICAL
CVSS score
9.1 (v4.0)
Vulnerability status
Deferred
Source identifier
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published
2026-10-23 12:18:06.410000
Last modified
2026-10-23 19:57:42.660000
View original CVE JSON
{
  "id": "CVE-2026-107685",
  "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
  "published": "2026-10-23T12:18:06.410",
  "lastModified": "2026-10-23T19:57:42.660",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    }
  ],
  "affected": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "affectedData": [
        {
          "vendor": "agentjido",
          "product": "req_llm",
          "defaultStatus": "unaffected",
          "collectionURL": "https://repo.hex.pm",
          "packageName": "req_llm",
          "cpes": [
            "cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.ReqLLM.Streaming.WebSocketSession.Client'",
            "'Elixir.ReqLLM.Streaming.WebSocketSession'",
            "'Elixir.ReqLLM.Providers.OpenAI.WebSocket'",
            "'Elixir.ReqLLM.OpenAI.Realtime'",
            "'Elixir.ReqLLM.Providers.OpenAICodex'"
          ],
          "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"
          ],
          "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"
            }
          ],
          "repo": "https://github.com/agentjido/req_llm",
          "packageURL": "pkg:hex/req_llm",
          "versions": [
            {
              "version": "1.9.0",
              "lessThan": "1.29.0",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "agentjido",
          "product": "req_llm",
          "defaultStatus": "unaffected",
          "collectionURL": "https://github.com",
          "packageName": "agentjido/req_llm",
          "cpes": [
            "cpe:2.3:a:agentjido:req_llm:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.ReqLLM.Streaming.WebSocketSession.Client'",
            "'Elixir.ReqLLM.Streaming.WebSocketSession'",
            "'Elixir.ReqLLM.Providers.OpenAI.WebSocket'",
            "'Elixir.ReqLLM.OpenAI.Realtime'",
            "'Elixir.ReqLLM.Providers.OpenAICodex'"
          ],
          "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"
          ],
          "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"
            }
          ],
          "repo": "https://github.com/agentjido/req_llm",
          "packageURL": "pkg:github/agentjido/req_llm",
          "versions": [
            {
              "version": "a389d718640ceb2d541a8f540ab954cbf5ef8313",
              "lessThan": "c7264fc0217fbacfb5562234ff790b8e4462de76",
              "versionType": "git",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV40": [
      {
        "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "type": "Secondary",
        "cvssData": {
          "version": "4.0",
          "vectorString": "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",
          "baseScore": 9.1,
          "baseSeverity": "CRITICAL",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "attackRequirements": "PRESENT",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "vulnConfidentialityImpact": "HIGH",
          "vulnIntegrityImpact": "HIGH",
          "vulnAvailabilityImpact": "NONE",
          "subConfidentialityImpact": "NONE",
          "subIntegrityImpact": "NONE",
          "subAvailabilityImpact": "NONE",
          "exploitMaturity": "NOT_DEFINED",
          "confidentialityRequirement": "NOT_DEFINED",
          "integrityRequirement": "NOT_DEFINED",
          "availabilityRequirement": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "Safety": "NOT_DEFINED",
          "Automatable": "NOT_DEFINED",
          "Recovery": "NOT_DEFINED",
          "valueDensity": "NOT_DEFINED",
          "vulnerabilityResponseEffort": "NOT_DEFINED",
          "providerUrgency": "NOT_DEFINED"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-295"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://cna.erlef.org/cves/CVE-2026-107685.html",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/agentjido/req_llm/commit/a389d718640ceb2d541a8f540ab954cbf5ef8313",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/agentjido/req_llm/commit/c7264fc0217fbacfb5562234ff790b8e4462de76",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    },
    {
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-107685",
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    }
  ]
}