CVE-2026-12746
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 · uneditedDancer2::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 confidenceDancer2::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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify installed version of Dancer2::Plugin::Auth::OAuth::ProviderRun 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::ProviderAffected if The version displayed is less than 0.23 (for example, 0.22, 0.21, or any version number below 0.23)
-
Confirm the plugin is in useSearch 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 flowsAffected if The plugin is loaded and used for user authentication via OAuth 2.0 providers (such as Google, Facebook, GitHub, etc.)
-
Check if state parameter validation is presentExamine 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 handlerAffected 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.
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 · scopedUpgrade 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.
0.23
- 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
- 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)
- Verify the upgrade was successful by checking the installed version matches 0.23 or higher
- Restart any application services that use this plugin to load the updated module
- 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.
- Consultation2.0 h
- Implementation3.0 h
- Testing3.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-12746 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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