CVE-2026-12746 Details
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.
A vulnerability in Dancer2::Plugin::Auth::OAuth::Provider, affecting versions prior to 0.23, allows for cross-site request forgery (CSRF) attacks during the OAuth 2.0 login process. The plugin's authentication_url method fails to include a state parameter, which is crucial for preventing CSRF. Additionally, the callback method does not verify that the incoming authorization code corresponds to a request initiated by the same session, leaving users vulnerable to having their accounts linked with an attacker's provider credentials.
Users can update to Dancer2::Plugin::Auth::OAuth::Provider version 0.23 or later, where this vulnerability has been addressed by implementing state parameter support and session verification.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 4, 2026CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 | CPANSec | Content Wall |
| https://github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth/commit/806420fc2abbe13bede4461475f2f3dcd7daf5f2.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23/diff/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.22 | CPANSec | Source CodeVendor |
| http://www.openwall.com/lists/oss-security/2026/07/04/9 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Dancer2::Plugin::Auth::OAuth::Provider | < 0.23 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 6, 2026 | CVE Modified | CISA-ADP |
| Jul 4, 2026 | CVE Modified | CVE |
| Jul 4, 2026 | New CVE Received | CPANSec |
Volerion