CVE-2026-12746

Source
https://cve.org/CVERecord?id=CVE-2026-12746
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12746.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-12746
Published
2026-07-04T17:52:41.494Z
Modified
2026-07-15T01:49:08.077631216Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter
Details

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.

Database specific
{
    "cna_assigner": "CPANSec",
    "cwe_ids": [
        "CWE-352"
    ],
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "0.23"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "0.23"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12746.json"
}
References

Affected packages

Git / github.com/biafra/perl-dancer2-plugin-auth-oauth

Affected ranges

Type
GIT
Repo
https://github.com/biafra/perl-dancer2-plugin-auth-oauth
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "REFERENCES"
}

Affected versions

0.*
0.01
0.02
0.03
0.04
0.05
0.06
0.07
0.08
0.09
0.10
0.11
0.12
0.13
0.14
0.15
0.16
0.17
0.20

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12746.json"