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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-352
- **Published:** 2026-08-04T11:45:49.464Z
- **Modified:** 2026-11-19T09:17:51.700Z

## Who should check

- Anyone running Erlang Ecosystem Foundation oidcc\_plug \>= 0.2.0-beta.1, \< 0.5.0
- Anyone running Erlang Ecosystem Foundation oidcc\_plug \>= e577ae73b9080693442916043a22d8f05491dd93, \< 97d75afc57826dca31989b47d6e2a3c136039917

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

## Affected and fixed versions

- Erlang Ecosystem Foundation oidcc\_plug: \>= 0.2.0-beta.1, \< 0.5.0 (cvelist)
- Erlang Ecosystem Foundation oidcc\_plug: \>= e577ae73b9080693442916043a22d8f05491dd93, \< 97d75afc57826dca31989b47d6e2a3c136039917 (cvelist)

## Mitigation

- Upgrade oidcc\_plug to 0.5.0 or later.
- Upgrade oidcc\_plug to 97d75afc57826dca31989b47d6e2a3c136039917 or later.
- 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-66884. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-66884.md
Affected: Erlang Ecosystem Foundation oidcc_plug >= 0.2.0-beta.1, < 0.5.0; Erlang Ecosystem Foundation oidcc_plug >= e577ae73b9080693442916043a22d8f05491dd93, < 97d75afc57826dca31989b47d6e2a3c136039917
Fixed in: Erlang Ecosystem Foundation oidcc_plug 0.5.0, Erlang Ecosystem Foundation oidcc_plug 97d75afc57826dca31989b47d6e2a3c136039917

Steps:
1. Search this machine and project for Erlang Ecosystem Foundation oidcc_plug: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-66884 being exploited?

There is no confirmed exploitation: CVE-2026-66884 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-66884?

Low: CVSS 2.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-66884?

Erlang Ecosystem Foundation oidcc\_plug \>= 0.2.0-beta.1, \< 0.5.0; Erlang Ecosystem Foundation oidcc\_plug \>= e577ae73b9080693442916043a22d8f05491dd93, \< 97d75afc57826dca31989b47d6e2a3c136039917.

### Is there a fix for CVE-2026-66884?

Yes. Fixed in Erlang Ecosystem Foundation oidcc\_plug 0.5.0, Erlang Ecosystem Foundation oidcc\_plug 97d75afc57826dca31989b47d6e2a3c136039917. Upgrade oidcc\_plug to 0.5.0 or later. Upgrade oidcc\_plug to 97d75afc57826dca31989b47d6e2a3c136039917 or later. 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.

### How do I check if I'm affected by CVE-2026-66884?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlef/oidcc_plug/security/advisories/GHSA-fg66-w5gp-22cr>
- patch: <https://github.com/erlef/oidcc_plug/commit/e577ae73b9080693442916043a22d8f05491dd93>
- patch: <https://github.com/erlef/oidcc_plug/commit/97d75afc57826dca31989b47d6e2a3c136039917>
- other: <https://cna.erlef.org/cves/CVE-2026-66884.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-66884>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-66884>

HTML: <https://flawdb.com/CVE-2026-66884> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-66884>
