CVE-2026-66883
published medium CVSS 4.0 · 6.3Oidcc.Plug.Authorize user agent session binding inert due to case-sensitive header lookup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Erlang Ecosystem Foundation | — | oidcc_plug0.1.0-alpha.3 to < 0.5.0 · Other versions: unaffected | Affected | Not stated | EEF |
| Erlang Ecosystem Foundation | — | erlef/oidcc_plugoidcc_plug · 0a75fb139d8e2686d1b75e0d48962323d2181673 to < f15e52c5750aaba701104b10ed96cfac063bd557 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Improper Handling of Case Sensitivity vulnerability in Erlang Ecosystem Foundation oidcc_plug (Oidcc.Plug.Authorize module) renders the user agent session binding inert, removing a defense in depth control against replay of a stolen session. This vulnerability is associated with program files lib/oidcc/plug/authorize.ex and lib/oidcc/plug/authorization_callback.ex, and program routines Oidcc.Plug.Authorize.call/2 and Oidcc.Plug.AuthorizationCallback.call/2. Oidcc.Plug.Authorize.call/2 reads the initiating client's user agent with get_req_header(conn, "User-Agent"). Plug lowercases incoming header names, but get_req_header/2 matches the supplied key exactly and performs no normalization of its own, so the mixed-case lookup always returns an empty list and nil is written into the session. On the callback side, Oidcc.Plug.AuthorizationCallback treats a stored nil user agent as nothing to compare and returns :ok without inspecting the request. The two behaviours combine so that the check passes unconditionally on every request, including for deployments that explicitly opted in with check_useragent: true, and an authorization callback can be completed from a different user agent than the one that initiated the flow without detection. The check fails open silently, with no error and no log entry, so a deployment cannot tell the binding is absent. The impact is limited to defense in depth. The inert check does not by itself allow an attacker to complete an authorization flow; it removes one layer that would otherwise hinder use of a stolen or leaked session, such as an exfiltrated session cookie replayed from a different client. The CSRF/state, nonce, and PKCE checks are unaffected and continue to function. Deployments that never enabled check_useragent are not affected in practice, since they never expected the binding. The corresponding lookup in Oidcc.Plug.AuthorizationCallback correctly uses the lowercase key and is not affected. This issue affects oidcc_plug: from 0.1.0-alpha.3 before 0.5.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Erlang Ecosystem Foundation | oidcc_plug | 0.1.0-alpha.3 to < 0.5.0 (affected · semver)Default: unaffected | EEF · cna |
| Erlang Ecosystem Foundation | oidcc_plug | 0a75fb139d8e2686d1b75e0d48962323d2181673 to < f15e52c5750aaba701104b10ed96cfac063bd557 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-178 CWE-178 Improper Handling of Case Sensitivity
References
5- EEF CNA record for CVE-2026-66883 https://cna.erlef.org/cves/CVE-2026-66883.html
- Introducing commit 0a75fb1 in erlef/oidcc_plug https://github.com/erlef/oidcc_plug/commit/0a75fb139d8e2686d1b75e0d48962323d2181673
- Fix commit f15e52c in erlef/oidcc_plug https://github.com/erlef/oidcc_plug/commit/f15e52c5750aaba701104b10ed96cfac063bd557
- https://github.com/erlef/oidcc_plug/security/advisories/GHSA-w5r8-m75h-98fc
- OSV record EEF-CVE-2026-66883 https://osv.dev/vulnerability/EEF-CVE-2026-66883
Provider assertions
2EEF · cna
Oidcc.Plug.Authorize user agent session binding inert due to case-sensitive header lookup
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a5c7fd27378c3ab336fed84e8cc76b005d10b3f91026646037b3c0d03ba7deef
- Ingested
- 19 Nov 2026, 08:49:09 UTC
- Source record
- Official CVE record