Description
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.
Published: 2026-08-04
Score: 2.1 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Oidcc.Plug.AuthorizationCallback fails to enforce the CSRF checks that bind an authorization callback to a specific user session. When a callback request arrives without an Oidcc.Plug.Authorize session or without the state query parameter, the plug substitutes permissive defaults and all downstream checks—including nonce, state, PKCE, IP, and user‑agent verification—are bypassed. The result is that a victim’s browser can unknowingly complete an OpenID Connect authorization flow for an attacker’s account. The victim can be signed in as the attacker, allowing the attacker to read or act on the victim’s behalf, or to link the attacker’s account with the victim’s provider record, creating an account‑takeover scenario.

Affected Systems

This vulnerability affects the Erlang Ecosystem Foundation’s oidcc_plug library in any release from version 0.2.0-beta.1 through 0.4.x before version 0.5.0. The issue resides in the Oidcc.Plug.AuthorizationCallback module’s call/2 function.

Risk and Exploitability

The CVSS score of 2.1 reflects the limited scope and the requirement for a social‑engineering element: the attacker must lure a user’s browser to visit the callback URL with a forged code and no state. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog, indicating no published exploits at this time. Although the vulnerability does allow an attacker to bypass authentication and potentially take over a victim’s account, the low CVSS score and absence of a known exploit reduce the immediate threat level. Still, because the flaw is a CSRF defect that could enable account takeover, administrators should treat it as a medium‑impact risk in environments where oidcc_plug is used for signin or account linking.

Generated by OpenCVE AI on August 4, 2026 at 20:02 UTC.

Remediation

Vendor Workaround

Insert a plug before Oidcc.Plug.AuthorizationCallback that rejects the request when either the Oidcc.Plug.Authorize session or the state query parameter is missing. This restores the binding the callback fails to enforce and does not require modifying the library.


OpenCVE Recommended Actions

  • Insert a plug before Oidcc.Plug.AuthorizationCallback that rejects requests missing either the Oidcc.Plug.Authorize session or the state query parameter, restoring the CSRF binding without changing the library source code.
  • Upgrade oidcc_plug to version 0.5.0 or later, which eliminates the permissive fallback and enforces state and session checks in the callback flow.
  • If an upgrade is not immediately possible, ensure that the application’s ingress or reverse proxy requires the state parameter and blocks requests lacking it, adding an additional layer of CSRF protection.

Generated by OpenCVE AI on August 4, 2026 at 20:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Erlang Ecosystem Foundation
Erlang Ecosystem Foundation oidcc Plug
Vendors & Products Erlang Ecosystem Foundation
Erlang Ecosystem Foundation oidcc Plug

Tue, 04 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 04 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Oidcc.Plug.AuthorizationCallback accepts callbacks with no authorize session or no state parameter, defeating CSRF protection
First Time appeared Erlef
Erlef oidcc Plug
Weaknesses CWE-352
CPEs cpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:*
Vendors & Products Erlef
Erlef oidcc Plug
References
Metrics cvssV4_0

{'score': 2.1, 'vector': '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'}


Subscriptions

Erlang Ecosystem Foundation Oidcc Plug
Erlef Oidcc Plug
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-08-04T12:40:41.232Z

Reserved: 2026-07-28T04:15:10.240Z

Link: CVE-2026-66884

cve-icon Vulnrichment

Updated: 2026-08-04T12:40:37.053Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-04T12:16:36.373

Modified: 2026-08-04T14:52:54.493

Link: CVE-2026-66884

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:20:13Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)