Skip to main content

Frappe Framework CVE-2026-66001

| EUVDEUVD-2026-63540 HIGH
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-08-20 GitHub_M
8.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker registers OAuth2 client on Frappe instance
  2. Delivery
    Crafts malicious consent-approval URL with desired scopes
  3. Exploit
    Delivers link to authenticated Frappe user via phishing or injected content
  4. Install
    User's browser follows URL while session cookie is active
  5. C2
    Approve endpoint processes GET request with no CSRF check
  6. Execute
    OAuth token issued to attacker's client
  7. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

frappe 16.0.0-beta.1, < 16.26.0
frappe < 15.114.0

Affected Packages

euvd frappe fix: 15.114.0
euvd frappe_16_0_0_beta_1 fix: 16.26.0

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

Vendor (GitHub_M) PRIMARY 8.5 HIGH
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
vuln.today AI 8.1 HIGH

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.

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 (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 19:03 EUVD
CVE Published
Aug 20, 2026 - 18:27 cve.org
HIGH 8.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch (Frappe Framework 15.114.0 for v15 or 16.26.0+ for v16).

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular Python framework, primarily in ERPNext enterprise deployments
Data Quality
5 sources
Confidence: Medium

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.2%
Patch available Yes
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

More in Frappe

View all
CVE-2025-67289 CRITICAL POC
9.6 Dec 22

Stored cross-site scripting leading to code execution in Frappe Framework 15.89.0 (and the ERPNext application built on

CVE-2018-3885 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3884 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3883 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3882 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2025-66440 HIGH POC
8.8 Dec 15

Authenticated SQL injection in Frappe ERPNext through 15.89.0 allows low-privilege users to extract arbitrary database c

CVE-2025-66439 HIGH POC
8.8 Dec 15

SQL injection in Frappe ERPNext through 15.89.0 lets an authenticated attacker with a valid session and access to the Pa

CVE-2025-66437 HIGH POC
8.8 Dec 15

Authenticated server-side template injection in Frappe ERPNext through 15.89.0 lets a user who can create or modify an A

CVE-2020-6145 HIGH POC
8.8 Aug 10

An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. Rated high sev

CVE-2026-39352 HIGH POC
8.7 May 20

Arbitrary file read in the Frappe full-stack web application framework allows remote unauthenticated attackers to retrie

CVE-2025-10655 HIGH POC
8.6 Dec 09

SQL injection in Frappe HelpDesk 1.14.0 dashboard functionality allows authenticated attackers to execute arbitrary SQL

CVE-2025-52042 HIGH POC
8.2 Oct 01

In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at erpnext/buying/doctype/request_for_quotation/re

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy