CVE-2026-66883
Received Received - Intake

Session Binding Bypass in oidcc_plug

Vulnerability report for CVE-2026-66883, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-04

Last updated on: 2026-08-04

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-04
Last Modified
2026-08-04
Generated
2026-08-04
AI Q&A
2026-08-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
erlang_ecosystem_foundation oidcc_plug From 0.1.0-alpha.3 (inc) to 0.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-178 The product does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves improper case sensitivity handling in the Oidcc.Plug.Authorize module of the oidcc_plug library. The module reads the User-Agent header using a case-sensitive lookup, but Plug lowercases header names, causing the lookup to fail and return nil. This disables user agent session binding, allowing authorization callbacks from different user agents without detection.

Detection Guidance

Check if your oidcc_plug version is between 0.1.0-alpha.3 and 0.5.0. Inspect logs for failed user agent session binding attempts, though the issue fails silently with no logs. Verify if check_useragent is enabled in your configuration.

Impact Analysis

This vulnerability weakens security by removing a defense against session replay attacks. If an attacker steals a session cookie, they can replay it from a different device without triggering the user agent check. However, other protections like CSRF, nonce, and PKCE remain intact. The impact is limited to deployments with check_useragent enabled.

Mitigation Strategies

Upgrade oidcc_plug to version 0.5.0 or later. If using affected versions, ensure check_useragent is disabled or implement manual header normalization for User-Agent lookups.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-66883. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart