8.1
HIGH CVSS 3.1
CVE-2026-12746
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter
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.

INFO

Published Date :

July 4, 2026, 6:16 p.m.

Last Modified :

Oct. 25, 2026, 3:10 p.m.

Remotely Exploit :

Yes !

Source :

9b29abf9-4ab0-4765-b253-1875cd9b441e
Affected Products

The following products are affected by CVE-2026-12746 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Update Dancer2::Plugin::Auth::OAuth::Provider to version 0.23 or later to fix CSRF.
  • Update Dancer2::Plugin::Auth::OAuth::Provider to version 0.23.
  • Apply security patches if available.
  • Review related authentication configurations.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-12746 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-12746 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-12746 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-12746 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 25, 2026

    Action Type Old Value New Value
    Added Translation Title: Dancer2::Plugin::Auth::OAuth::Provider de BIAFRA, Description: Las versiones de Dancer2::Plugin::Auth::OAuth::Provider anteriores a 0.23 para Perl no son compatibles con el parámetro state de OAuth 2.0. El método authentication_url construye la redirección de autorización del proveedor sin emitir un valor state, y el método callback intercambia el código de callback y registra el token resultante en la sesión sin verificar que el callback corresponde a una petición de autorización que esta sesión inició. Cualquier aplicación que utilice este plugin para el inicio de sesión de OAuth 2.0 está expuesta a la falsificación de petición en sitios cruzados de inicio de sesión: porque el callback no está vinculado a la sesión que inició el flujo, un atacante que inicia una autorización con su propia cuenta de proveedor puede entregar el callback resultante a una víctima, haciendo que la sesión de la víctima complete la autorización del atacante y asociando la identidad del proveedor y el token de acceso del atacante con esa sesión. Donde la aplicación persiste esto como un enlace de cuenta, el atacante puede retener el acceso a la cuenta de la víctima a través de sus propias credenciales de proveedor.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 06, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
    Added SSVC {'id': 'CVE-2026-12746', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-06T14:55:59.796200Z'}
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Jul. 04, 2026

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2026/07/04/9
  • New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e

    Jul. 04, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth', 'vendor': 'BIAFRA', 'product': 'Dancer2::Plugin::Auth::OAuth::Provider', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '0.23', 'versionType': 'custom'}], 'packageName': 'Dancer2-Plugin-Auth-OAuth', 'programFiles': ['lib/Dancer2/Plugin/Auth/OAuth/Provider.pm'], 'collectionURL': 'https://cpan.org/modules', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'Dancer2::Plugin::Auth::OAuth::Provider::authentication_url'}, {'name': 'Dancer2::Plugin::Auth::OAuth::Provider::callback'}]}]
    Added 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.
    Added CWE CWE-352
    Added Reference https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
    Added Reference https://github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth/commit/806420fc2abbe13bede4461475f2f3dcd7daf5f2.patch
    Added Reference https://metacpan.org/release/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23/diff/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.22
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.