CVE-2026-66884: Oidcc.Plug.AuthorizationCallback accepts callbacks with no authorize session or no state parameter, defeating CSRF protection
Cross-Site Request Forgery vulnerability in Erlang Ecosystem Foundation oidccplug (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/authorizationcallback.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 checkstate/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 oidccplug: from 0.2.0-beta.1 before 0.5.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
oidcc_plugto a version that resolves this vulnerability.Fixed in 0.5.0 - Configuration
Modify Oidcc.Plug.AuthorizationCallback.call/2 so that callbacks lacking an Oidcc.Plug.Authorize session and/or lacking the state parameter are rejected instead of using permissive defaults that cause downstream checks (nonce/state/PKCE/peer IP/user agent) to be skipped.
Oidcc.Plug.AuthorizationCallback (lib/oidcc/plug/authorization_callback.ex) CSRF/authorize-session requirements in call/2 = reject requests when authorize session is missing or when state parameter is absent
Event History
Frequently Asked Questions
What is the severity of CVE-2026-66884?
CVE-2026-66884 has a risk rating of 75, indicating it is a significant vulnerability.
What is CVE-2026-66884?
CVE-2026-66884 is a Cross-Site Request Forgery (CSRF) vulnerability in the Oidcc.Plug.AuthorizationCallback module of the oidcc_plug library.
How do I fix CVE-2026-66884?
To fix CVE-2026-66884, ensure that authorization callbacks are properly secured with an active session and a valid state parameter.
What systems are affected by CVE-2026-66884?
CVE-2026-66884 affects applications using the oidcc_plug library within the Erlang Ecosystem.
What type of attack does CVE-2026-66884 enable?
CVE-2026-66884 enables attackers to execute unauthorized authorization flows on behalf of victims.