Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker completes auth flow at identity provider
-
DeliveryObtains fresh authorization code for attacker account
-
ExploitCrafts callback URL with attacker code and no state parameter
-
ExecutionVictim induced to visit crafted callback URL
-
PersistAuthorizationCallback.call/2 finds no session, disables all OIDC checks
-
ImpactVictim signed in as attacker (or attacker identity linked to victim account)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires oidcc_plug version 0.2.0-beta.1 through 0.5.0 (exclusive) with the Oidcc.Plug.AuthorizationCallback route exposed over the network (AV:N per CVSS 4.0). The attacker must possess a valid account at the same OpenID Connect identity provider configured for the application and must be able to complete a standard authorization flow to obtain a fresh authorization code for that account - this is the specific attack requirement captured by AT:P in the CVSS 4.0 vector. Victim interaction is mandatory: the victim must be induced to visit the crafted callback URL, for example via phishing or a malicious redirect (UI:A). No special application configuration is required for the base login CSRF outcome. The more severe account-takeover outcome - attacker's provider identity linked to victim's application account - is limited to deployments that route both authentication and account-linking through a single shared callback endpoint, which is a non-default architectural choice. Authentication at the vulnerable application is not required from the attacker (PR:N). Exploitation is constrained to the session immediately following the crafted callback visit; there is no persistent foothold beyond an active session unless account linking occurs. |
| Impact | The official CVSS 4.0 score of 2.1 (AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N) accurately captures the limiting factors - AT:P reflects the requirement for the attacker to hold a valid identity-provider account and obtain a fresh authorization code, while UI:A requires the victim to follow a crafted link - but materially understates practical severity in a common deployment pattern. Applications that route both sign-in and identity-provider account linking through the same callback endpoint (a pattern the advisory explicitly flags) face full account takeover: the attacker's external identity becomes linked to the victim's application account, granting the attacker persistent access to the victim's data. For sign-in-only deployments, impact is bounded to session confusion - the victim acts as the attacker during that session, which is still a meaningful integrity violation. EPSS data was not provided in the input. No KEV listing and no public POC have been identified at time of analysis, so urgency is determined by deployment pattern rather than observed exploitation. The CVSS 4.0 low-impact ratings (VC:L, VI:L) reflect the standard sign-in-only case; defenders operating account-linking flows should treat this as higher priority than the numeric score implies. |
| Exploit ScenarioDerived | An attacker who holds an account at the same identity provider as the target application completes a normal authorization flow against that provider, obtaining a fresh authorization code scoped to the attacker's own account. The attacker then crafts a callback URL pointing to the victim application's OIDC redirect endpoint, appending the authorization code but deliberately omitting the state parameter, and delivers it to the victim via phishing or a malicious redirect. When the victim's browser fetches the URL, oidcc_plug's AuthorizationCallback.call/2 finds no session, silently bypasses every OIDC security check, and signs the victim into the attacker's account - or, in account-linking deployments, binds the attacker's external identity to the victim's existing application account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
Login CSRF in oidcc_plug (versions 0.2.0-beta.1 through 0.5.0) enables an attacker to silently sign a victim into the attacker's own identity provider account by luring the victim to a crafted OIDC callback URL carrying the attacker's authorization code. The root cause is that Oidcc.Plug.AuthorizationCallback.call/2 substitutes permissive defaults (:any nonce, :none PKCE and state verifiers) when no prior Oidcc.Plug.Authorize session exists instead of rejecting the stateless request outright, causing every downstream security check - nonce, state, PKCE, peer IP, and user-agent binding - to silently pass against nothing. No public exploit code or CISA KEV listing exists at time of analysis; however, the attack primitive is straightforward for any attacker holding an account at the same identity provider.
RemediationAI
Upgrade oidcc_plug to version 0.5.0 or later; the fix is delivered in commit 97d75afc57826dca31989b47d6e2a3c136039917 (https://github.com/erlef/oidcc_plug/commit/97d75afc57826dca31989b47d6e2a3c136039917) and replaces the permissive fallback with strict rejection via the new fetch_authorize_session/1 helper, ensuring all OIDC security checks are enforced unconditionally. If immediate upgrade is not feasible, add application-level Plug middleware earlier in the pipeline that rejects any request to the callback route that lacks both a state query parameter and a valid Oidcc.Plug.Authorize session cookie; this prevents stateless callback requests from reaching the vulnerable call/2 function at the cost of requiring careful implementation to avoid introducing new logic errors. Applications that expose account-linking through the same callback endpoint should prioritize this fix as urgent regardless of the low numeric CVSS score, because in that configuration the impact escalates to full account takeover. The vendor advisory is at https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr.
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
oidcc_plug (CPE: cpe:2.3:a:erlang_ecosystem_foundation:oidcc_plug:*:*:*:*:*:*:*:*) is an Elixir/Phoenix Plug library implementing OpenID Connect authorization code flows for the Erlang ecosystem. The authorization callback module (lib/oidcc/plug/authorization_callback.ex) is responsible for receiving the redirect from the identity provider, validating the OIDC state parameter against the originating session, verifying the nonce, checking PKCE, and optionally enforcing peer IP and user-agent binding before exchanging the code for tokens. CWE-352 (Cross-Site Request Forgery) describes the root cause: the Plug.Authorize step writes security material (nonce, state verifier, PKCE verifier, peer IP, user agent) into a server-side session cookie, and the AuthorizationCallback is designed to read that session to validate the incoming callback. When no such session exists, the pre-fix code substituted permissive defaults rather than aborting, so an unsolicited callback - one the victim never initiated - was processed as legitimate. A secondary logic flaw in check_state/2 explicitly returned :ok for stateless requests when the state verifier slot was :none, providing an independent bypass path. The fix (commit 97d75afc) introduces fetch_authorize_session/1 which hard-rejects any callback lacking a structurally valid session, and reverses check_state/2's fallback clause to return {:error, :state_not_verified}.
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:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-delivered with no attacker privileges required, but victim must follow a crafted link (UI:R); C:L and I:L reflect session confusion or account-linking impact without availability effect.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Cross-Site Request Forgery vulnerability in Erlang Ecosystem Foundation oidcc_plug (Oidcc.Plug.AuthorizationCallback module) allows an attacker to make a victim's browser complete an authorization flow the victim never initiated.
This vulnerability is associated with program file lib/oidcc/plug/authorization_callback.ex and program routine Oidcc.Plug.AuthorizationCallback.call/2.
A callback request that carries no Oidcc.Plug.Authorize session is processed with every security check disabled rather than being rejected. call/2 substitutes permissive defaults for the absent session, and each downstream check treats its value as nothing to compare and returns :ok, so the nonce, state, PKCE, peer IP and user agent checks are all skipped. A separate clause of check_state/2 also accepts a state-less request when a verifier is present.
An attacker obtains an authorization code for their own provider account, then induces the victim to visit the callback endpoint with that code and no state parameter. The application signs the victim in as the attacker, so the victim's subsequent actions occur in the attacker's account where the attacker can read them. Applications reusing one callback for both signing in and linking a provider account are further exposed to account takeover, the attacker's account becoming linked to the victim's.
The permissive fallback serves no conforming flow. Third-party-initiated login reaches a relying party at a separate login initiation endpoint and causes it to send a fresh authentication request, and this library implements no such endpoint. Oidcc.Plug.Authorize always sends a state parameter, which an authorization server must echo, so no legitimate callback lacks one.
This issue affects oidcc_plug: from 0.2.0-beta.1 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-52657
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB