Skip to main content
Vulnerability Database/CVE-2026-109667

CVE-2026-109667: Frappe ERPNext Privilege Escalation Flaw

CVE-2026-109667 is a privilege escalation vulnerability in Frappe ERPNext allowing authenticated users to create privileged accounts and gain full control. This post covers technical details, affected versions, and mitigation.

Published:

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-109667 Overview

CVE-2026-109667 is a privilege escalation vulnerability in Frappe ERPNext affecting versions before 15.111.0 and 16.x before 16.22.0. A record-creation endpoint accepts the record type from the request and inserts the record with permission checks disabled. Any authenticated user, including accounts with no operational role, can supply a privileged record type to create privileged accounts. Successful exploitation grants full control of the ERPNext site, including administrative access to financial, HR, and operational data. The flaw is categorized under CWE-269: Improper Privilege Management.

Critical Impact

Any authenticated low-privilege user can create privileged accounts and gain full administrative control over the ERPNext instance.

Affected Products

  • Frappe ERPNext versions prior to 15.111.0
  • Frappe ERPNext 16.x versions prior to 16.22.0
  • Self-hosted and cloud-deployed ERPNext instances exposing the vulnerable record-creation endpoint

Discovery Timeline

  • 2026-10-12 - CVE-2026-109667 published to the National Vulnerability Database
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-109667

Vulnerability Analysis

The vulnerability resides in a Frappe ERPNext record-creation endpoint that trusts a client-supplied doctype (record type) value and inserts the record while bypassing standard permission validation. ERPNext typically enforces role-based access on each DocType, restricting which users can create records such as User, Role, or system configuration entries. The vulnerable endpoint sidesteps those checks entirely.

An attacker authenticated with any role, including a default low-privilege account, can submit a crafted request specifying a privileged record type. The server inserts the record without validating whether the caller is authorized to create that DocType. This allows the attacker to provision new administrative users, assign the System Manager role, or modify security-relevant configurations.

Once an administrative user is created, the attacker authenticates as that account and gains full control over the ERPNext tenant. This includes access to financial records, customer data, supplier information, HR records, and the ability to execute server-side scripts within the Frappe framework.

Root Cause

The root cause is improper privilege management ([CWE-269]). The endpoint delegates record creation to a backend function invoked with permission checks disabled, while accepting the DocType parameter directly from untrusted input. The design assumes callers only submit allowed DocTypes, but no server-side allowlist enforces that assumption.

Attack Vector

Exploitation requires only a valid authenticated session over the network. No user interaction and no elevated privileges are needed. An attacker sends an HTTP request to the vulnerable endpoint, supplying a privileged DocType such as User along with the fields required to provision an administrative account. The server creates the record and returns success. See the GitHub Security Advisory GHSA-x635-wr4c-7345 and the VulnCheck advisory for additional technical context.

Detection Methods for CVE-2026-109667

Indicators of Compromise

  • Creation of new User records by accounts that do not hold the System Manager or Administrator role
  • Unexpected role assignments granting System Manager, Administrator, or custom privileged roles to recently created users
  • API requests to Frappe record-creation endpoints containing privileged doctype values originating from low-privilege session tokens
  • New server scripts, scheduled jobs, or webhooks created shortly after suspicious user provisioning events

Detection Strategies

  • Review Frappe audit logs for Insert events on sensitive DocTypes (User, Role, Role Profile, Server Script) and correlate the acting user against expected administrators
  • Compare the acting user's assigned roles at the time of record creation against the DocType's permission matrix to identify out-of-policy inserts
  • Inspect reverse proxy or web server logs for POST requests to Frappe API endpoints that include privileged DocType parameters

Monitoring Recommendations

  • Alert on the creation of any new user account that is immediately granted the System Manager role
  • Monitor for logins from newly created privileged accounts, especially from unfamiliar IP addresses or user agents
  • Track changes to the tabUser and tabHas Role database tables and forward events to a centralized SIEM for correlation

How to Mitigate CVE-2026-109667

Immediate Actions Required

  • Upgrade Frappe ERPNext to version 15.111.0 or later on the 15.x branch, or 16.22.0 or later on the 16.x branch
  • Audit all existing user accounts and role assignments; disable any accounts created outside normal provisioning workflows
  • Rotate API keys, secrets, and administrator passwords on any instance that may have been exposed prior to patching
  • Restrict network access to ERPNext administrative endpoints using a reverse proxy or WAF while patching is scheduled

Patch Information

Frappe published fixes in ERPNext 15.111.0 and 16.22.0. Review the GitHub Security Advisory GHSA-x635-wr4c-7345 for release notes and upgrade instructions. Self-hosted operators should apply the update using the standard bench update workflow and verify the installed version after upgrade.

Workarounds

  • If immediate patching is not possible, restrict access to the ERPNext site to trusted networks using IP allowlisting at the reverse proxy
  • Review and tighten role permissions so that low-privilege roles cannot authenticate to API endpoints beyond those strictly required
  • Consider temporarily disabling self-service account registration if it is enabled on the deployment
bash
# Verify installed ERPNext version after upgrade
bench version --format json | grep -E 'erpnext|frappe'

# Apply the patched release on self-hosted deployments
bench switch-to-branch version-15 erpnext frappe --upgrade
bench update --reset
bench --site <your-site> migrate

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.