CVE-2026-12746: BIAFRA Dancer2::Plugin::Auth::OAuth::Provider · Cross-Site Request Forgery (CSRF)
Affects BIAFRA Dancer2::Plugin::Auth::OAuth::ProviderSource CVE Database V5
Not known to be exploited · CVSS 8.1 High : upgrade to 0.23 soon.
Data as of 15 Nov 2026, 20:25 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.23
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade Dancer2::Plugin::Auth::OAuth::Provider and Dancer2-Plugin-Auth-OAuth to 0.23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| BIAFRADancer2::Plugin::Auth::OAuth::Provider | Affected
| Fixed in
|
GitHubDancer2-Plugin-Auth-OAuthpkg:github/Dancer2-Plugin-Auth-OAuthOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, applications using this plugin should consider implementing their own verification of the OAuth 2.0 state parameter to bind authorization requests to user sessions. Avoid relying solely on this plugin for OAuth 2.0 login flows without additional CSRF protections.
Description
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter. The authentication_url method builds the provider authorization redirect without issuing a state value, and the callback method exchanges the callback code and registers the resulting token into the session without verifying that the callback corresponds to an authorization request this session initiated. Any application that uses this plugin for OAuth 2.0 login is exposed to login cross-site request forgery: because the callback is not bound to the session that began the flow, an attacker who starts an authorization with their own provider account can deliver the resulting callback to a victim, causing the victim's session to complete the attacker's authorization and associating the attacker's provider identity and access token with that session. Where the application persists this as an account link, the attacker may retain access to the victim's account through their own provider credentials.
References
- metacpan.org/release/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23/diff/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.22 (opens in a new tab)
- github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth/commit/806420fc2abbe13bede4461475f2f3dcd7daf5f2.patch (opens in a new tab)
- datatracker.ietf.org/doc/html/rfc6749 (opens in a new tab)
- openwall.com/lists/oss-security/2026/07/04/9 (opens in a new tab)