Skip to main content

oidcc_plug CVE-2026-66883

| EUVDEUVD-2026-52658 MEDIUM
Improper Handling of Case Sensitivity (CWE-178)
2026-08-04 EEF
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Steal victim OIDC session cookie via independent attack
  2. Delivery
    Capture in-flight state and nonce values
  3. Exploit
    Replay authorization callback from attacker-controlled client
  4. Execution
    Nil user-agent stored in session matches nil comparison unconditionally
  5. Impact
    Authorization flow completes with no mismatch detected or logged

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
Exploitation Conditions

The target application must have explicitly configured check_useragent: true in Oidcc.Plug.Authorize options - deployments without this non-default setting are entirely unaffected because they never relied on user-agent binding. Beyond the configuration prerequisite, an attacker must separately obtain a valid, in-flight OIDC session cookie and state/nonce values from a victim through an independent attack (e.g., XSS, network sniffing, server-side log exposure); this vulnerability provides no capability to steal those credentials. Exploitation is further limited because the CSRF/state, nonce, and PKCE checks remain functional and represent independent barriers to completing a full authorization flow replay. Affected versions are 0.1.0-alpha.3 through 0.5.0 running in the Elixir/Plug web framework ecosystem.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N, score 6.3) accurately characterizes the constrained risk profile. AC:H and AT:P reflect the prerequisite that an attacker must already possess a valid, in-flight OIDC session cookie or state token stolen from a victim - this vulnerability provides no mechanism to acquire those credentials. VI:L acknowledges the integrity impact: an authorization callback completes from an unintended client without detection, defeating a control that deployments explicitly opted into. No EPSS score was provided in the input data; based on the narrow exploitation conditions (specific library, non-default configuration, requires prior session compromise), exploitation probability is expected to be very low. No CISA KEV listing and no public exploit code exist. The overall real-world risk is low: primary OIDC security controls (CSRF/state, nonce, PKCE) remain intact, and the population of affected deployments is bounded by those both running this library version and using check_useragent: true.

Exploit ScenarioDerived

An attacker who has separately obtained a victim's OIDC in-flight session cookie - via XSS, cookie theft, or network interception - attempts to complete the authorization callback from a different browser fingerprint or IP. Because the user-agent binding stored in the session is nil (due to the case-sensitive lookup bug), the callback plug skips the comparison entirely and returns :ok, allowing the authorization flow to complete from the attacker's client without any error or log entry. No public exploit code has been identified; this is a second-stage technique requiring prior credential theft.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 04, 2026

User-agent session binding in oidcc_plug's OpenID Connect authorization plug is silently rendered inert by a case-sensitivity bug, affecting all versions from 0.1.0-alpha.3 through 0.5.0 that configured check_useragent: true. The authorize plug reads the User-Agent header using a mixed-case key, but Plug normalizes all HTTP header names to lowercase before storage, so the lookup always returns an empty list and nil is written into the OIDC session; the callback plug then treats a stored nil as nothing to compare and returns :ok unconditionally, meaning a stolen session replayed from a different browser or device passes the user-agent check without detection or logging. No public exploit has been identified at time of analysis, and CSRF/state, nonce, and PKCE protections remain fully functional.

RemediationAI

Upgrade oidcc_plug to version 0.5.0 or later, which contains the one-line fix correcting get_req_header(conn, "User-Agent") to get_req_header(conn, "user-agent") in lib/oidcc/plug/authorize.ex; the patch commit is available at https://github.com/erlef/oidcc_plug/commit/f15e52c5750aaba701104b10ed96cfac063bd557 and the advisory at https://github.com/erlef/oidcc_plug/security/advisories/GHSA-w5r8-m75h-98fc. Note: the fix version 0.5.0 is inferred from the CVE's "before 0.5.0" version boundary and has not been independently verified from a published changelog or release tag. For deployments unable to upgrade immediately, explicitly removing check_useragent: true from plug configuration is semantically equivalent to the current broken state - it eliminates the false expectation of protection without reducing actual security, since the check was already passing unconditionally. Ensure that PKCE, nonce, and CSRF/state validation remain enabled, as these are the primary replay-attack defenses and are not affected by this bug.

Affected VersionsENISA

oidcc_plug 0a75fb139d8e2686d1b75e0d48962323d2181673 <f15e52c5750aaba701104b10ed96cfac063bd557
oidcc_plug 0.1.0-alpha.3 <0.5.0

Affected Packages

euvd oidcc_plug fix: 0.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is a mismatch between Plug's HTTP layer behavior and the case-sensitive semantics of get_req_header/2 in Elixir's Plug framework, precisely captured by CWE-178 (Improper Handling of Case Sensitivity). When an HTTP request enters the Plug pipeline, all header names are normalized to lowercase; get_req_header/2 then performs an exact binary match against those stored keys. Calling get_req_header(conn, "User-Agent") - with the canonical mixed-case form - never matches the stored "user-agent" key, so it always returns [], and List.first([]) yields nil. The bug is in Oidcc.Plug.Authorize.call/2 at lib/oidcc/plug/authorize.ex line 134; the callback at lib/oidcc/plug/authorization_callback.ex already uses the correct lowercase key and is unaffected. The affected CPE is cpe:2.3:a:erlang_ecosystem_foundation:oidcc_plug:*:*:*:*:*:*:*:* covering versions 0.1.0-alpha.3 up to 0.5.0. This is a defense-in-depth control failure, not a primary authentication bypass.

Know when Oidcc Plug gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 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
vuln.today AI 3.7 LOW

Network vector with high complexity because prior session theft is a hard prerequisite; scope unchanged and no confidentiality or availability impact - only low integrity loss from the silently bypassed user-agent binding.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Low
niche Elixir/Erlang OIDC plug library, limited enterprise footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy