Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker registers OAuth2 client on Frappe instance
-
DeliveryCrafts malicious consent-approval URL with desired scopes
-
ExploitDelivers link to authenticated Frappe user via phishing or injected content
-
InstallUser's browser follows URL while session cookie is active
-
C2Approve endpoint processes GET request with no CSRF check
-
ExecuteOAuth token issued to attacker's client
-
ImpactAttacker accesses user data and performs actions within granted scopes
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 | The target Frappe instance must have the OAuth2 provider functionality enabled (frappe/integrations/oauth2.py exposed). The victim must be currently authenticated to the Frappe instance (active session cookie). The attacker must be able to deliver a malicious link, page, or embedded resource to the victim - requiring social engineering or a separate content injection point. No non-default Frappe configuration is required beyond OAuth2 being operational; the CSRF flaw applies to any standard Frappe installation prior to the patch. The client_id scoping sub-issue additionally requires the victim to already hold an active OAuth Bearer Token for any client on the instance. Exploitation is bounded by UI:A - fully automated unauthenticated exploitation without any victim interaction is not possible. The attacker themselves requires no Frappe account for the CSRF attack vector, but does need to have registered (or compromised) an OAuth client on the instance to receive the resulting token. |
| Impact | The CVSS 4.0 score of 8.5 with AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N reflects a realistic threat model: the attacker needs no account on the Frappe instance and only moderate social engineering capability to deliver a malicious link to an authenticated session. The UI:A (active user interaction) requirement is the primary limiting factor and prevents fully automated mass exploitation. The GET-based CSRF surface is especially dangerous because it can be triggered via a single embedded image tag or link without any visible page load. The client_id scoping flaw adds an independent authorization confusion attack that can succeed without phishing if the victim already holds any active OAuth token. KEV status is not confirmed in the provided data, and no EPSS score is available - exploitation probability cannot be quantified numerically. There is no signal conflict: CVSS vector metrics align with the described attack (network reachable, low complexity, no attacker credentials, user interaction required). The risk is real and prioritized for any Frappe deployment acting as an OAuth2 identity provider. |
| Exploit ScenarioDerived | An attacker registers or controls an OAuth2 client on the target Frappe instance and crafts a URL pointing to the consent approval endpoint with desired scopes, then delivers it to an authenticated user via phishing email or injected link. When the user's browser follows the URL while their Frappe session is active, the approve endpoint processes it as a valid GET request with no CSRF verification, silently granting the attacker's OAuth client access to the user's resources within the requested scopes. Separately, if the victim already holds any active OAuth token on the instance, the unscoped client_id check in authorize may allow an attacker to redirect an existing authorization to their own client without triggering the consent screen at all. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
CSRF vulnerabilities in Frappe Framework's OAuth2 consent flow allow network-accessible attackers to trick authenticated users into unknowingly approving OAuth grants or to reuse authorization state across unintended clients, exposing user data and permitting actions within granted scopes. Three weaknesses combine: the consent approval endpoint accepted GET requests, the consent template lacked CSRF token protection, and active OAuth token lookups were not scoped to the requesting client_id. Versions prior to 15.114.0 and 16.x prior to 16.26.0 are affected; vendor-released patches are available and no public exploit has been identified at time of analysis.
RemediationAI
Upgrade to Frappe 15.114.0 or 16.26.0, the vendor-released patched versions documented at https://github.com/frappe/frappe/releases/tag/v15.114.0 and https://github.com/frappe/frappe/releases/tag/v16.26.0. The fixes (PRs #40073, #40700, #40701) add CSRF token generation and validation to the OAuth consent form, restrict the approve endpoint to POST-only via @frappe.whitelist(methods=['POST']), and scope active Bearer Token lookups to include the specific client_id from the request credentials. If immediate upgrade is not feasible, the most effective compensating control is to disable the Frappe OAuth2 provider entirely by removing or network-blocking access to the /api/method/frappe.integrations.oauth2.approve and related endpoints - this eliminates the CSRF surface but breaks all applications using Frappe as an OAuth2 identity provider. No documented partial mitigation preserves OAuth2 functionality while neutralizing the CSRF risk prior to patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages 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 code resides in frappe/integrations/oauth2.py within the approve and authorize functions of Frappe's built-in OAuth2 provider. Three distinct flaws compound each other: (1) the approve endpoint was decorated with @frappe.whitelist() without method restriction, allowing GET requests to trigger state-changing consent actions - classic CSRF territory since browsers can silently issue cross-origin GETs; (2) the Jinja template frappe/templates/includes/oauth_confirmation.html used JavaScript window.location.replace() to redirect on button click rather than a POST form with an embedded CSRF token, eliminating any same-origin verification; (3) the active Bearer Token query in authorize checked only for status='Active' and user=frappe.session.user without filtering by client_id, meaning an existing token for any OAuth application would satisfy the check and allow the flow to proceed for a completely different requesting client. CWE-352 (Cross-Site Request Forgery) covers the primary attack class. CPE cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:* applies across all affected v15 and v16 releases.
Know when Frappe gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-delivered CSRF needs no attacker credentials (PR:N) but requires victim interaction (UI:R); full data read and action capability within OAuth scopes justifies C:H/I:H; no availability impact; scope unchanged as impact stays within the Frappe authorization boundary.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Frappe is a full-stack web application framework. Prior to 15.114.0 and 16.26.0, the approve and authorize functions in frappe/integrations/oauth2.py allow the OAuth2 consent flow to proceed without restricting approve to POST, without a csrf_token in frappe/templates/includes/oauth_confirmation.html, and without scoping an active OAuth token check to the requesting client. An attacker can cause an authenticated user to approve an OAuth grant or reuse authorization state for the wrong client, exposing data and permitting actions within the granted scopes. This issue is fixed in versions 15.114.0 and 16.26.0.
Executive ViewAI
Frappe Framework versions before 15.114.0 and 16.26.0 contain CSRF vulnerabilities in OAuth2 consent flows that enable attackers to manipulate authenticated users into unknowingly granting applications access to sensitive data and permissions; no public exploit identified at time of analysis. Organizations using Frappe for authentication and API delegation face exposure to data breaches and unauthorized account access. Immediate patching is required to close this authentication bypass vector.
Apply vendor patch (Frappe Framework 15.114.0 for v15 or 16.26.0+ for v16).
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.
Stored cross-site scripting leading to code execution in Frappe Framework 15.89.0 (and the ERPNext application built on
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
Authenticated SQL injection in Frappe ERPNext through 15.89.0 allows low-privilege users to extract arbitrary database c
SQL injection in Frappe ERPNext through 15.89.0 lets an authenticated attacker with a valid session and access to the Pa
Authenticated server-side template injection in Frappe ERPNext through 15.89.0 lets a user who can create or modify an A
An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. Rated high sev
Arbitrary file read in the Frappe full-stack web application framework allows remote unauthenticated attackers to retrie
SQL injection in Frappe HelpDesk 1.14.0 dashboard functionality allows authenticated attackers to execute arbitrary SQL
In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at erpnext/buying/doctype/request_for_quotation/re
EUVD-2026-63540
NVD
CVE.org
EPSS
GitHub
Exploit-DB