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

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-04T11:45:49.464Z
- Modified: 2026-11-26T17:23:11.387Z
- Also known as: EEF-CVE-2026-66884, GHSA-fg66-w5gp-22cr
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- oidcc_plug: from 0.2.0-beta.1 before 0.5.0
- erlef/oidcc_plug: from e577ae73b9080693442916043a22d8f05491dd93 before 97d75afc57826dca31989b47d6e2a3c136039917
- oidcc_plug (Hex): from 0.2.0-beta.1 before 0.5.0
- https://github.com/erlef/oidcc_plug: from e577ae73b9080693442916043a22d8f05491dd93 before 97d75afc57826dca31989b47d6e2a3c136039917

## Every score

- EEF: CVSS:4.0 2.1 Low `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66884.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66884> (related)
- <https://github.com/erlef/oidcc_plug/commit/e577ae73b9080693442916043a22d8f05491dd93> (related, web)
- <https://github.com/erlef/oidcc_plug/commit/97d75afc57826dca31989b47d6e2a3c136039917> (fix, patch)
- <https://hex.pm/packages/oidcc_plug> (package)

## Sources

- CVE List: [CVE-2026-66884](https://www.cve.org/CVERecord?id=CVE-2026-66884), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66884](https://osv.dev/vulnerability/EEF-CVE-2026-66884), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-66884](https://nvd.nist.gov/vuln/detail/CVE-2026-66884), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-66884 · Whole record: https://cve.day/CVE-2026-66884.json · Rebuilt by cve.day 2026-11-26T17:37:11.247Z
