Skip to main content

Dancer2-Plugin-Auth-OAuth EUVDEUVD-2026-41686

| CVE-2026-12746 HIGH
Cross-Site Request Forgery (CSRF) (CWE-352)
8.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker authenticates OAuth flow using own provider account
  2. Delivery
    Captures authorization callback URL with attacker's authorization code
  3. Exploit
    Crafts delivery mechanism (phishing link, malicious page)
  4. Execution
    Victim's browser executes callback URL against vulnerable application
  5. Persist
    Plugin registers attacker's OAuth token to victim's active session
  6. Impact
    Attacker logs into victim's account using own provider credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must be running Dancer2::Plugin::Auth::OAuth::Provider at a version before 0.23 and must use it as an OAuth 2.0 login or account-linking mechanism. The attacker must be able to initiate an OAuth authorization flow with the same identity provider configured in the target application using their own provider account, and must capture the resulting callback URL before it is used. The victim must be tricked into visiting the attacker-crafted callback URL while an application session is active (or while in the process of initiating login), requiring user interaction such as clicking a phishing link. Persistent attacker access is contingent on the application storing the OAuth token as a durable account link; applications that treat OAuth tokens as ephemeral session credentials without account association limit the attacker's long-term foothold. The attacker requires no privileges within the target application.

Impact

No CVSS vector was supplied by the advisory or NVD for this CVE, so all metric assessments are independently derived from the description. EPSS and KEV data are absent, indicating no confirmed active exploitation or automated risk scoring at time of analysis. Despite the absence of a formal CVSS score, the impact is conceptually high: a successful attack yields persistent account access for the attacker, surviving application-layer password changes since the attacker authenticates via their own OAuth provider credentials. However, several factors bound real-world risk: victim interaction is required (the victim must visit a crafted callback URL), the target application must use this specific plugin for OAuth login, and the OAuth provider must be one the attacker can also authenticate against. The deployment footprint of this niche Perl CPAN plugin is very small, significantly constraining the aggregate attack surface. There is no indication of weaponized or automated exploitation - this is assessed as a targeted, manual attack primitive rather than a mass-exploitation vector.

Exploit ScenarioDerived

An attacker initiates a legitimate OAuth 2.0 authorization flow against the target Dancer2 application using their own provider account, capturing the resulting callback URL that contains the authorization code. The attacker then delivers this callback URL to a victim via phishing or a crafted web page, causing the victim's browser to visit it while holding an active application session. Because the plugin performs no state verification, the victim's session completes the attacker's OAuth flow, permanently linking the attacker's provider identity and access token to the victim's account - granting the attacker persistent login capability through their own provider credentials.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 04, 2026

Login CSRF via a missing OAuth 2.0 state parameter in Dancer2::Plugin::Auth::OAuth::Provider (all versions before 0.23) allows a remote, unauthenticated attacker to associate their own OAuth provider identity and access token with a victim's application session, potentially achieving persistent account takeover. The plugin's authentication_url method never generates a state value, and the callback handler never validates one, leaving the entire authorization flow unbound to the session that initiated it. No public exploit code or active exploitation (CISA KEV) has been identified, but the attack concept is well-understood and described in RFC 6749 §10.12 as a known threat to any OAuth 2.0 implementation omitting state binding.

RemediationAI

Upgrade Dancer2-Plugin-Auth-OAuth to version 0.23 or later via CPAN (cpanm Dancer2::Plugin::Auth::OAuth or cpan Dancer2-Plugin-Auth-OAuth). The fixed release BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23 was published 2026-06-22; the changes are visible at the MetaCPAN diff (https://metacpan.org/release/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.23/diff/BIAFRA/Dancer2-Plugin-Auth-OAuth-0.22) and the underlying patch is at the GitHub commit https://github.com/biafra/perl-Dancer2-Plugin-Auth-OAuth/commit/806420fc2abbe13bede4461475f2f3dcd7daf5f2. If an immediate upgrade is not feasible, the only viable compensating control is to disable OAuth login entirely and require alternative authentication methods (local credentials, SSO via a different mechanism); this eliminates the attack surface completely but removes social login functionality for all users. There is no partial mitigation that preserves OAuth login without implementing the state parameter, because the missing protection is architectural - no WAF rule or network control can substitute for server-side session binding.

Affected VersionsENISA

Dancer2::Plugin::Auth::OAuth::Provider 0 <0.23

Affected Packages

euvd dancer2_plugin_auth_oauth_provider fix: 0.23

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dancer2::Plugin::Auth::OAuth is a Perl CPAN distribution that integrates OAuth 2.0 third-party authentication into applications built on the Dancer2 web framework. The OAuth 2.0 Authorization Framework (RFC 6749) mandates that clients generate an opaque, unguessable state value before redirecting users to the authorization server, then verify that value upon receiving the authorization callback - this is the primary CSRF protection mechanism defined in §10.12 of the RFC. The vulnerable plugin's authentication_url method omits state generation entirely, and the callback method accepts any inbound authorization code without verifying it corresponds to a flow this session initiated. The root cause class is CWE-352 (Cross-Site Request Forgery), manifesting as Login CSRF or OAuth callback injection: a variant that does not require the victim to perform any authenticated action in the target application, but instead causes the victim's browser to complete an attacker-controlled authorization flow, permanently associating the attacker's provider credentials with the victim's account.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 9.3 CRITICAL

Network-delivered, no attacker privileges required (PR:N), but victim must visit crafted URL (UI:R); account takeover crosses scope boundary (S:C) with full confidentiality and integrity loss, no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Jul 04, 2026 - 19:01 EUVD

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

Dancer2::Plugin::Auth::OAuth::Provider, used for user authentication in web applications, contains a critical vulnerability that allows attackers to take over user accounts without credentials. Any organization using this plugin is at risk of unauthorized account access and potential data breaches.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement server-side validation of OAuth state parameters; enforce SameSite=Strict on session cookies; add independent CSRF token protection to login flows; restrict OAuth redirect URIs to approved domains only; monitor authentication logs for suspicious patterns in account-identity associations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Rare
niche Perl CPAN plugin for the Dancer2 web framework
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy