CVE-2026-66883
MEDIUM 6.3CVSS 4.0Oidcc.Plug.Authorize user agent session binding inert due to case-sensitive header lookup
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.
- Published
- 4 Aug 2026
- Last modified
- 2 Dec 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Awaiting Analysis
- Weakness
- CWE-178
- Also known as
- EEF-CVE-2026-66883GHSA-w5r8-m75h-98fc
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-66883JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/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 |
| CVE List | EEF | CVSS 4.0 | MEDIUM 6.3 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://repo.hex.pm | oidcc_plugcpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:* |
>= 0.1.0-alpha.3, < 0.5.0 | 0.5.0 |
| CVE List | https://github.com | erlef/oidcc_plugcpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:* |
>= 0a75fb139d8e2686d1b75e0d48962323d2181673, < f15e52c5750aaba701104b10ed96cfac063bd557 | f15e52c5750aaba701104b10ed96cfac063bd557 |
| OSV | Hex | oidcc_plug | >= 0.1.0-alpha.3, < 0.5.0 | 0.5.0 |
References
- https://cna.erlef.org/cves/CVE-2026-66883.html · related, WEB
- https://github.com/erlef/oidcc_plug/commit/0a75fb139d8e2686d1b75e0d48962323d2181673 · related, WEB
- https://github.com/erlef/oidcc_plug/commit/f15e52c5750aaba701104b10ed96cfac063bd557 · patch, FIX
- https://github.com/erlef/oidcc_plug/security/advisories/GHSA-w5r8-m75h-98fc · vendor-advisory, related, ADVISORY
- https://osv.dev/vulnerability/EEF-CVE-2026-66883 · related
- https://hex.pm/packages/oidcc_plug · PACKAGE
History
- 2 Dec 2026 13:48 UTC · NVD: updated (other details)
- 2 Dec 2026 13:48 UTC · OSV: updated (other details)
- 2 Dec 2026 12:48 UTC · CVE List: updated (other details)
- 26 Nov 2026 18:37 UTC · OSV: updated (other details)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 4 Aug 2026)
- 25 Nov 2026 20:11 UTC · CVE List: first stored (published 4 Aug 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 4 Aug 2026)