Cross-Site Request Forgery (CSRF)Weakness · CWE-352

CVE-2026-12746

HIGH · 8.1 CVSS v3.1 Published 2026-07-04
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
88/100
Remediation priority · High
Remotely reachable No privileges Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Dancer2::Plugin::Auth::OAuth::Provider before v0.23 fails to generate or validate the OAuth 2.0 state parameter during authorization. The authentication_url method omits state generation, and the callback handler accepts authorization codes without verifying they originated from the current session, enabling attackers to bind their OAuth identity to victims' sessions.

MitigationUpgrade to Dancer2::Plugin::Auth::OAuth::Provider version 0.23 or later which implements state parameter support, or manually add cryptographically random state generation in authentication_url and state validation in the callback handler.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed version of Dancer2::Plugin::Auth::OAuth::Provider
    Run perldoc -v Dancer2::Plugin::Auth::OAuth::Provider or check the module file metadata in your Perl library path, or use cpan -D Dancer2::Plugin::Auth::OAuth::Provider
    Affected if The version displayed is less than 0.23 (for example, 0.22, 0.21, or any version number below 0.23)
  2. Confirm the plugin is in use
    Search your application code and configuration for 'Dancer2::Plugin::Auth::OAuth::Provider' or 'Dancer2::Plugin::Auth::OAuth' and verify it is loaded and actively used for OAuth authentication flows
    Affected if The plugin is loaded and used for user authentication via OAuth 2.0 providers (such as Google, Facebook, GitHub, etc.)
  3. Check if state parameter validation is present
    Examine the plugin source code or perldoc for the authentication_url and callback methods; look for state parameter generation in authorization requests and state validation in the callback handler
    Affected if The code shows no state parameter is generated in authorization requests or no state validation occurs in callbacks (versions before 0.23 lack this)

Your environment is affected if you are running Dancer2::Plugin::Auth::OAuth::Provider version 0.22 or earlier AND using this plugin for OAuth 2.0 authentication in your Dancer2 application.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch github.com →
Interim mitigation

Upgrade to Dancer2::Plugin::Auth::OAuth::Provider version 0.23 or later which implements state parameter support, or manually add cryptographically random state generation in authentication_url and state validation in the callback handler.

Recommended fix High confidence

0.23

  1. Identify the current installed version of Dancer2::Plugin::Auth::OAuth::Provider using 'cpan -D Dancer2::Plugin::Auth::OAuth::Provider' or your distribution's package manager
  2. Upgrade to version 0.23 or later using 'cpan Dancer2::Plugin::Auth::OAuth::Provider' or your distribution's package manager (e.g., 'cpanm Dancer2::Plugin::Auth::OAuth::Provider' for Perlbrew)
  3. Verify the upgrade was successful by checking the installed version matches 0.23 or higher
  4. Restart any application services that use this plugin to load the updated module
  5. Test OAuth login flow to confirm the state parameter is now being generated and validated

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing3.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,750
Get the patch applied

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-12746 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-12746 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data