Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSteal victim OIDC session cookie via independent attack
-
DeliveryCapture in-flight state and nonce values
-
ExploitReplay authorization callback from attacker-controlled client
-
ExecutionNil user-agent stored in session matches nil comparison unconditionally
-
ImpactAuthorization 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-52658
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB