CVE-2026-66884: Oidcc.Plug.AuthorizationCallback accepts callbacks with no authorize session or no state parameter, defeating CSRF protection

Published Aug 4, 2026
·
Updated

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

1 affected component
oidcc_plug>0.2.0-beta.1<=0.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade oidcc_plug to a version that resolves this vulnerability.

    Fixed in 0.5.0
  2. 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

Aug 4, 2026
CVE Published
via MITRE·11:45 AM
Data Sourced
via MITRE·11:45 AM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-66884?

CVE-2026-66884 has a risk rating of 75, indicating it is a significant vulnerability.

2

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.

3

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.

4

What systems are affected by CVE-2026-66884?

CVE-2026-66884 affects applications using the oidcc_plug library within the Erlang Ecosystem.

5

What type of attack does CVE-2026-66884 enable?

CVE-2026-66884 enables attackers to execute unauthorized authorization flows on behalf of victims.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203