GHSA-rfx5-x6rx-6w25
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister attacker OAuth provider account
-
DeliveryStart authorization, capture callback code
-
ExploitDeliver callback URL to victim
-
ExecutionVictim session exchanges attacker's code
-
PersistAttacker identity linked to victim session
-
ImpactPersistent 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
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.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2026-41687
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB