Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2026-12746cvecve-2026-12746cwe-352
Published: 07/04/2026 (07/04/2026, 17:52:41 UTC)
Source: CVE Database V5
Vendor/Project: BIAFRA
Product: Dancer2::Plugin::Auth::OAuth::Provider

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.

Affected software

GitHub Actionsmore threats →cve
Dancer2-Plugin-Auth-OAuth
pkg:github/Dancer2-Plugin-Auth-OAuth
Affected versions
<0.23

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/04/2026, 18:36:23 UTC

Technical Analysis

The vulnerability in Dancer2::Plugin::Auth::OAuth::Provider versions prior to 0.23 arises from the lack of support for the OAuth 2.0 state parameter, which is critical for preventing CSRF attacks during OAuth login flows. Specifically, the authentication_url method does not generate a state value, and the callback method does not verify that the OAuth callback matches the session that initiated the authorization. This allows an attacker to initiate an OAuth authorization with their own provider account and then deliver the resulting callback to a victim's session. Consequently, the victim's session is linked to the attacker's OAuth credentials, potentially allowing the attacker to access the victim's account if the application uses this linkage for authentication or authorization.

Potential Impact

An attacker can exploit this vulnerability to perform login CSRF attacks, causing a victim's session to be associated with the attacker's OAuth provider identity and access token. This may allow the attacker to gain unauthorized access to the victim's account or resources if the application persists this association as an account link. The vulnerability undermines the integrity of the OAuth login process and can lead to account compromise or unauthorized access.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications using Dancer2::Plugin::Auth::OAuth::Provider should consider implementing manual verification of the OAuth 2.0 state parameter or other CSRF protections in the OAuth flow to ensure that callbacks correspond to the sessions that initiated them. Monitoring vendor communications for an official fix or update is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-06-19T17:42:35.807Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a494f4d27e9c79719ca6cfd

Added to database: 07/04/2026, 18:22:05 UTC

Last enriched: 07/04/2026, 18:36:23 UTC

Last updated: 07/04/2026, 19:36:48 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses