CVE-2026-66884
LOW 2.1CVSS 4.0Oidcc.Plug.AuthorizationCallback accepts callbacks with no authorize session or no state parameter, defeating CSRF protection
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
- 4 Aug 2026
- Last modified
- 2 Dec 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Awaiting Analysis
- Weakness
- CWE-352
- Also known as
- EEF-CVE-2026-66884GHSA-fg66-w5gp-22cr
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-66884JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | LOW 2.1 | 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/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 |
| CVE List | EEF | CVSS 4.0 | LOW 2.1 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://repo.hex.pm | oidcc_plugcpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:* |
>= 0.2.0-beta.1, < 0.5.0 | 0.5.0 |
| CVE List | https://github.com | erlef/oidcc_plugcpe:2.3:a:erlef:oidcc_plug:*:*:*:*:*:erlang:*:* |
>= e577ae73b9080693442916043a22d8f05491dd93, < 97d75afc57826dca31989b47d6e2a3c136039917 | 97d75afc57826dca31989b47d6e2a3c136039917 |
| OSV | Hex | oidcc_plug | >= 0.2.0-beta.1, < 0.5.0 | 0.5.0 |
References
- https://cna.erlef.org/cves/CVE-2026-66884.html · related, WEB
- https://github.com/erlef/oidcc_plug/commit/97d75afc57826dca31989b47d6e2a3c136039917 · patch, FIX
- https://github.com/erlef/oidcc_plug/commit/e577ae73b9080693442916043a22d8f05491dd93 · related, WEB
- https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr · vendor-advisory, related, ADVISORY
- https://osv.dev/vulnerability/EEF-CVE-2026-66884 · related
- https://hex.pm/packages/oidcc_plug · PACKAGE
History
- 2 Dec 2026 13:48 UTC · NVD: updated (other details)
- 2 Dec 2026 13:48 UTC · OSV: updated (other details)
- 2 Dec 2026 12:48 UTC · CVE List: updated (other details)
- 26 Nov 2026 18:37 UTC · OSV: updated (other details)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 4 Aug 2026)
- 25 Nov 2026 20:11 UTC · CVE List: first stored (published 4 Aug 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 4 Aug 2026)