Skip to main content

Plack::Middleware::OAuth CVE-2026-12740

| EUVDEUVD-2026-41687 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
    Register attacker OAuth provider account
  2. Delivery
    Start authorization, capture callback code
  3. Exploit
    Deliver callback URL to victim
  4. Execution
    Victim session exchanges attacker's code
  5. Persist
    Attacker identity linked to victim session
  6. Impact
    Persistent access to victim account

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

Exploitation requires that the target application uses Plack::Middleware::OAuth (<=0.10) specifically for OAuth 2.0 login via the RequestTokenV2/AccessTokenV2 handlers, and that the victim be induced to load an attacker-crafted OAuth callback URL while holding a session on the app (UI:R - the victim must click or otherwise trigger the callback request). The attacker also needs a valid account on the same OAuth provider the app trusts, to obtain a legitimate authorization code to deliver. No authentication to the target app is required (PR:N) and the attack is network-reachable (AV:N) against default configurations, since the middleware issues no state value by default. The most damaging outcome - durable account takeover - is limited to applications that persist the OAuth callback identity as a stored account link; apps treating the callback as a one-time login still suffer session/identity confusion but may not grant persistent access.

Impact

Signals are consistent and point to a genuine but interaction-gated integrity risk rather than a mass-exploitation emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N, base 8.1 High) shows a network-reachable, low-complexity, unauthenticated attack whose only real gate is required victim interaction (UI:R). SSVC aligns: Exploitation=none (no observed activity), Automatable=no (each attack needs a per-victim social-engineering step and cannot be sprayed), Technical Impact=total (full account compromise where linking persists). EPSS is low at 0.13% (3rd percentile) and the CVE is not in CISA KEV, matching the 'no public exploit identified' status. The main caveat is that real-world impact is conditional on the consuming application: the middleware itself enables the flaw, but whether it yields durable account takeover depends on whether the application persists the OAuth identity as an account link versus treating it as a transient login. This is a legitimately actionable fix for anyone running the middleware, but the low automatability, required user interaction, and niche footprint make it a moderate priority rather than a drop-everything issue.

Exploit ScenarioDerived

An attacker begins an OAuth 2.0 authorization at the target application using their own provider account, capturing the resulting authorization callback URL/code. They then lure a victim (via a phishing email or a hidden link/auto-submitting page) into visiting that callback URL while the victim has a session on the vulnerable app; because AccessTokenV2 does not verify any state binding, the victim's session completes the attacker's authorization and registers the attacker's provider identity and token, and where the app stores this as an account link the attacker gains persistent access to the victim's account. No public POC is identified, but the low attack complexity (AC:L) means the technique is straightforward to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jul 06, 2026

Login cross-site request forgery in Plack::Middleware::OAuth through 0.10 (Perl/PSGI OAuth login middleware) lets an unauthenticated remote attacker bind their own provider identity to a victim's session because the OAuth 2.0 flow omits the anti-CSRF state parameter and never verifies that a callback belongs to the session that initiated the flow. With victim interaction (clicking an attacker-supplied callback URL), the attacker's provider account and access token become associated with the victim's session, and where the app persists this as an account link the attacker retains ongoing access to the victim's account. There is no public exploit identified at time of analysis; EPSS is low (0.13%) and it is not in CISA KEV, but an upstream fix exists in PR #13.

Earlier versions of this analysis (2)
v2 Jul 06, 2026 - 15:43 cvss changed CVSS 8.1

Login cross-site request forgery in the Perl module Plack::Middleware::OAuth (all versions through 0.10) lets an unauthenticated remote attacker fixate their own OAuth 2.0 provider identity onto a victim's session. Because RequestTokenV2 omits the OAuth state parameter and AccessTokenV2 registers the returned token via register_session without binding the callback to the session that started the flow, an attacker can deliver a pre-initiated callback to a victim and cause the victim's session to complete the attacker's authorization. There is no public exploit identified at time of analysis and EPSS is very low (0.13%), but the SSVC technical impact is rated total.

v1 Jul 04, 2026 - 18:16

Login CSRF via missing OAuth 2.0 state parameter in Plack::Middleware::OAuth through 0.10 allows a remote attacker to associate their own OAuth provider identity with a victim's application session. The middleware's RequestTokenV2 handler omits the state nonce when initiating the authorization redirect, and AccessTokenV2 registers the resulting access token into the session without verifying the callback was initiated by that session. An attacker who controls their own provider account can complete an OAuth flow and deliver the resulting callback to a victim, causing the victim's session to be permanently linked to the attacker's provider identity and access token - a condition that may yield persistent account access. No public exploit code has been identified at time of analysis, and no CISA KEV listing exists.

RemediationAI

Upstream fix available (PR/commit); a released patched version is not independently confirmed from the provided data, so apply the fix from GitHub PR #13 (https://github.com/c9s/Plack-Middleware-OAuth/pull/13) or the official patch at https://security.metacpan.org/patches/P/Plack-Middleware-OAuth/0.10/CVE-2026-12740-r1.patch, which adds CSPRNG-backed state generation/validation and requires Plack::Middleware::Session >= 0.35 plus Crypt::SysRandom; watch CPAN (https://metacpan.org/dist/Plack-Middleware-OAuth) for a tagged release above 0.10 and track RT ticket https://rt.cpan.org/Ticket/Display.html?id=179874 and the oss-security advisory https://seclists.org/oss-sec/2026/q3/27. If you cannot patch immediately, compensating controls include implementing the RFC 6749 §10.12 state check in a wrapping layer or reverse proxy that injects and verifies a per-session state parameter on the authorization and callback URLs (trade-off: custom code that must exactly match provider redirect handling), disabling OAuth 2.0 login and falling back to another authentication method (trade-off: loss of social login for users), and, for apps that auto-link identities, disabling automatic account linking so a callback cannot silently attach a provider identity to an existing session (trade-off: extra manual linking step for legitimate users).

Affected VersionsENISA

Plack::Middleware::OAuth 0 ≤0.10

Affected Packages

euvd plack_middleware_oauth no fix

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

The affected component is Plack::Middleware::OAuth, a Perl PSGI middleware (distributed on CPAN by author c9s) that implements OAuth 1.0/2.0 login handling for Plack-based web applications. The root cause is CWE-352 (Cross-Site Request Forgery): in the OAuth 2.0 handlers, RequestTokenV2 constructs the provider authorization redirect without generating a state value, and AccessTokenV2 exchanges the returned authorization code and calls register_session to install the resulting token without checking that the callback corresponds to an authorization request the current session started. RFC 6749 §10.12 specifies the state parameter precisely to bind the authorization request to the user-agent's authenticated state and prevent this login-CSRF class; the upstream patch (PR #13) adds a CSPRNG-generated state (via Crypt::SysRandom random_bytes) stored in the Plack::Session keyed by provider in RequestTokenV2, and a strict equality check with removal on the callback in AccessTokenV2, also raising the Plack::Middleware::Session dependency to 0.35.

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 8.1 HIGH

Network reachable and low complexity with no attacker auth (PR:N), but the callback must be delivered to a victim (UI:R); resulting account link grants high confidentiality/integrity impact and no availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/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

4
Analysis Updated
Jul 06, 2026 - 15:43 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 06, 2026 - 15:43 vuln.today
v2 - CVSS changed
Severity Changed
Jul 06, 2026 - 15:37 NVD
CRITICAL HIGH
CVSS changed
Jul 06, 2026 - 15:37 NVD
8.1 (CRITICAL) 8.1 (HIGH)

Description PRE-NVD

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

Executive ViewAI

Why It Matters

Plack::Middleware::OAuth through version 0.10 contains a login CSRF vulnerability allowing attackers to hijack OAuth authentication flows and bind unauthorized provider accounts to user sessions, potentially enabling persistent account takeover. Organizations using this middleware must assess their exposure and plan urgent remediation to prevent account compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: temporarily disable OAuth-based login if alternative authentication methods exist, implement OAuth state parameter validation in application code, require additional verification steps before linking new provider accounts, enforce re-authentication for account linking operations, and monitor authentication logs for abnormal account linking activity.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche Perl/PSGI CPAN OAuth module, limited enterprise deployment
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.1%
Patch available No
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