# CVE-2026-66883: Oidcc.Plug.Authorize user agent session binding inert due to case-sensitive header lookup

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-04T11:46:05.191Z
- Modified: 2026-11-26T17:23:11.571Z
- Also known as: EEF-CVE-2026-66883, GHSA-w5r8-m75h-98fc
- Weaknesses: CWE-178
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- oidcc_plug: from 0.1.0-alpha.3 before 0.5.0
- erlef/oidcc_plug: from 0a75fb139d8e2686d1b75e0d48962323d2181673 before f15e52c5750aaba701104b10ed96cfac063bd557
- oidcc_plug (Hex): from 0.1.0-alpha.3 before 0.5.0
- https://github.com/erlef/oidcc_plug: from 0a75fb139d8e2686d1b75e0d48962323d2181673 before f15e52c5750aaba701104b10ed96cfac063bd557

## Every score

- EEF: CVSS:4.0 6.3 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/erlef/oidcc_plug/security/advisories/GHSA-w5r8-m75h-98fc> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66883.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66883> (related)
- <https://github.com/erlef/oidcc_plug/commit/0a75fb139d8e2686d1b75e0d48962323d2181673> (related, web)
- <https://github.com/erlef/oidcc_plug/commit/f15e52c5750aaba701104b10ed96cfac063bd557> (fix, patch)
- <https://hex.pm/packages/oidcc_plug> (package)

## Sources

- CVE List: [CVE-2026-66883](https://www.cve.org/CVERecord?id=CVE-2026-66883), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66883](https://osv.dev/vulnerability/EEF-CVE-2026-66883), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-66883](https://nvd.nist.gov/vuln/detail/CVE-2026-66883), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-66883 · Whole record: https://cve.day/CVE-2026-66883.json · Rebuilt by cve.day 2026-11-26T17:37:10.872Z
