Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109654 Overview
CVE-2026-109654 is a missing authorization vulnerability [CWE-862] affecting Frappe ERPNext versions before 15.119.0 and 16.x before 16.31.0. Certain endpoints that trigger transactional email delivery do not verify whether the calling user has read permission on the referenced document. Authenticated attackers can call these endpoints to cause the system to send transactional emails for documents they are not permitted to access. The flaw exposes document contents through email delivery rather than through direct API responses, which complicates detection.
Critical Impact
Authenticated users can trigger transactional emails for documents outside their permission scope, leaking confidential business records such as invoices, quotations, and purchase orders.
Affected Products
- Frappe ERPNext versions prior to 15.119.0
- Frappe ERPNext 16.x versions prior to 16.31.0
- Deployments exposing authenticated user access to the ERPNext API
Discovery Timeline
- 2026-10-12 - CVE-2026-109654 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109654
Vulnerability Analysis
Frappe ERPNext exposes endpoints that generate and send transactional emails about documents such as invoices, quotations, and sales orders. The vulnerable endpoints accept a document reference and dispatch an email containing the document's content to a configured recipient. The server-side handlers omit the read-permission check normally applied before returning document data through standard APIs.
An authenticated attacker with any valid session can invoke the endpoint and specify a document identifier belonging to another user, department, or company tenant. The system then renders the email body using the target document and sends it, effectively bypassing the ERPNext permission model for that document class. Because delivery is email-based, the attacker may configure the recipient or rely on default routing to receive the leaked content.
Root Cause
The root cause is a missing authorization check [CWE-862] on specific transactional email endpoints. The handlers invoke the mail generation and dispatch logic without first calling the permission validation routine that confirms the caller has read access to the referenced DocType and document name. Authorization is enforced for direct document reads but not for the email trigger path.
Attack Vector
Exploitation requires an authenticated session with low privileges on the ERPNext instance. The attacker issues an API request to the vulnerable endpoint, supplying a target document reference. No user interaction is required on the victim side. See the GitHub Security Advisory GHSA-q8wq-q35q-gj8h and the VulnCheck Advisory on Frappe ERPNext for additional technical context.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-109654
Indicators of Compromise
- Outbound transactional email events for documents that the sending user has no history of accessing through standard read endpoints.
- API calls from low-privilege accounts targeting transactional email endpoints with document identifiers across multiple DocTypes.
- Spikes in email dispatch volume originating from a single authenticated session or API key.
Detection Strategies
- Correlate ERPNext application logs for email dispatch events with the authenticated user's document access history, flagging mismatches.
- Review web server access logs for repeated POST requests to transactional email endpoints by non-administrative accounts.
- Alert on transactional emails whose recipient address does not match the document's standard contact or owner mapping.
Monitoring Recommendations
- Forward ERPNext application and web server logs to a centralized analytics platform and retain them for incident review.
- Enable mail server audit logging to capture sender, recipient, subject, and originating session identifiers for all transactional messages.
- Monitor for enumeration patterns such as sequential document name values submitted to the same endpoint.
How to Mitigate CVE-2026-109654
Immediate Actions Required
- Upgrade Frappe ERPNext to version 15.119.0 or later on the 15.x branch, or 16.31.0 or later on the 16.x branch.
- Audit recent transactional email activity to identify any messages dispatched for documents outside the sender's permission scope.
- Rotate API keys and review session activity for any low-privilege accounts that interacted with transactional email endpoints.
Patch Information
The maintainers resolved the vulnerability in Frappe ERPNext 15.119.0 and 16.31.0 by adding the missing read-permission check to the affected transactional email endpoints. Full details are available in GitHub Security Advisory GHSA-q8wq-q35q-gj8h.
Workarounds
- Restrict network access to the ERPNext API so that only trusted internal networks or VPN clients can authenticate.
- Reduce standing privileges by removing non-essential role assignments from user accounts until the patch is applied.
- Disable or rate-limit transactional email endpoints at a reverse proxy if upgrade cannot be completed immediately.
# Configuration example: upgrade ERPNext via bench
bench update --patch
bench switch-to-branch version-15 erpnext frappe --upgrade
bench --site <site-name> migrate
bench restart
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

