SecurityContext

CVE-2026-12746: Dancer2::Plugin::Auth::OAuth::Provider - Cross-Site Request Forgery

  • Cve: CVE-2026-12746
  • Name: Dancer2::Plugin::Auth::OAuth::Provider - Cross-Site Request Forgery
  • 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.
  • Impact: Attackers can link their OAuth identity to victim sessions, potentially gaining unauthorized access to victim accounts.
  • Remediation: Update to version 0.23 or later.
  • Vulnerability type: cross_site_request_forgery
  • Vulnerability impact: broken_access_control
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.00254
  • Epss percentile: 0.16864
  • Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
  • Published at: 2026-07-04T18:16:28Z
  • Age in days: 143
  • Modified at: 2026-10-25T15:10:00Z
  • References total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12746
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-352Cross-Site Request Forgery

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
https://github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth/commit/806420fc2abbe13bede4461475f2f3dcd7daf5f2.patch
https://metacpan.org/release/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23/diff/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.22
http://www.openwall.com/lists/oss-security/2026/07/04/9

Projects

RepositoryLink kindsIndexedUrl
biafra/perl-Dancer2-Plugin-Auth-OAuthcommit, fixyes/v1/repositories/biafra/perl-Dancer2-Plugin-Auth-OAuth

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts