Skip to main content
VulnerabilityPublished Updated

CVE-2026-12746: BIAFRA Dancer2::Plugin::Auth::OAuth::Provider · Cross-Site Request Forgery (CSRF)

Affects BIAFRA Dancer2::Plugin::Auth::OAuth::ProviderSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.1 High : upgrade to 0.23 soon.

Data as of 15 Nov 2026, 20:25 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
BIAFRADancer2::Plugin::Auth::OAuth::ProviderAffected
  • <0.23
Fixed in
  • 0.23
GitHubDancer2-Plugin-Auth-OAuthpkg:github/Dancer2-Plugin-Auth-OAuthOther threatsAffected
  • <0.23
Fixed in
  • 0.23

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

Community reviews

Loading reviews…