CVE-2026-66884
Oidcc.Plug.AuthorizationCallback accepts callbacks with no authorize session or no state parameter, defeating CSRF protection
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.
INFO
Published Date :
Aug. 4, 2026, 12:16 p.m.
Last Modified :
Aug. 4, 2026, 2:52 p.m.
Remotely Exploit :
Yes !
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products
The following products are affected by CVE-2026-66884
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update oidcc_plug to version 0.5.0 or later.
- Apply vendor-released patches for security.
- Validate session handling and security checks.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-66884.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-66884 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-66884
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-66884 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-66884 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 04, 2026
Action Type Old Value New Value Added Reference https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr Added SSVC {'id': 'CVE-2026-66884', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-04T12:37:09.321822Z'} -
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Aug. 04, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:*'], 'repo': 'https://github.com/erlef/oidcc_plug', 'vendor': 'Erlang Ecosystem Foundation', 'modules': ['Elixir.Oidcc.Plug.AuthorizationCallback'], 'product': 'oidcc_plug', 'versions': [{'status': 'affected', 'version': '0.2.0-beta.1', 'lessThan': '0.5.0', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/oidcc_plug', 'packageName': 'oidcc_plug', 'programFiles': ['lib/oidcc/plug/authorization_callback.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Oidcc.Plug.AuthorizationCallback':call/2"}]}, {'cpes': ['cpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:*'], 'repo': 'https://github.com/erlef/oidcc_plug', 'vendor': 'Erlang Ecosystem Foundation', 'modules': ['Elixir.Oidcc.Plug.AuthorizationCallback'], 'product': 'oidcc_plug', 'versions': [{'status': 'affected', 'version': 'e577ae73b9080693442916043a22d8f05491dd93', 'lessThan': '97d75afc57826dca31989b47d6e2a3c136039917', 'versionType': 'git'}], 'packageURL': 'pkg:github/erlef/oidcc_plug', 'packageName': 'erlef/oidcc_plug', 'programFiles': ['lib/oidcc/plug/authorization_callback.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Oidcc.Plug.AuthorizationCallback':call/2"}]}] 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. Added CVSS V4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-352 Added Reference https://cna.erlef.org/cves/CVE-2026-66884.html Added Reference https://github.com/erlef/oidcc_plug/commit/97d75afc57826dca31989b47d6e2a3c136039917 Added Reference https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66884