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

CVE-2026-111388: Frappe Framework Auth Bypass Vulnerability

CVE-2026-111388 is an authentication bypass flaw in Frappe Framework that allows attackers to circumvent IP allowlist restrictions using API keys, OAuth, or header-based authentication. This article covers technical details, affected versions, security impact, and mitigation strategies.

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

CVE-2026-111388 is an access control weakness in the Frappe Framework. The flaw affects versions before 15.120.0 and 16.x versions before 16.33.0. Frappe does not enforce the per-user restrict_ip allowlist for non-session authentication paths. The gap covers API key, OAuth, and header-based authentication methods. Attackers with valid credentials can authenticate from any source IP, bypassing network-based access restrictions configured by administrators. The weakness is classified under CWE-284: Improper Access Control.

Critical Impact

Valid API keys, OAuth tokens, or authentication headers can be used from IP addresses that administrators explicitly intended to block, nullifying a core defense-in-depth control.

Affected Products

  • Frappe Framework versions before 15.120.0
  • Frappe Framework 16.x versions before 16.33.0
  • Deployments relying on per-user restrict_ip allowlists for API, OAuth, or header-based access

Discovery Timeline

  • 2026-10-16 - CVE-2026-111388 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111388

Vulnerability Analysis

Frappe Framework allows administrators to pin individual user accounts to specific source IP ranges through the restrict_ip user field. The intent is to constrain where a given account can authenticate from, regardless of credential validity. The vulnerability stems from the enforcement logic running only against interactive, session-based logins. Non-session authentication paths skip the allowlist check entirely. An attacker holding a valid API key, OAuth access token, or header-based credential can therefore reach the application from any network location. The gap defeats network segmentation controls that teams rely on to contain stolen credentials or restrict administrative tooling to known jump hosts.

Root Cause

The allowlist enforcement is tied to the session authentication middleware rather than a centralized authorization check. When Frappe processes requests authenticated by Authorization: token, OAuth bearer tokens, or custom headers, the request path does not consult the restrict_ip value stored on the user record. This is a missing authorization control rather than a flaw in the allowlist parsing itself.

Attack Vector

Exploitation requires an attacker to already possess valid non-session credentials for a Frappe user. Credentials can be obtained through phishing, credential stuffing against exposed service accounts, repository leaks of API keys, or theft of OAuth tokens. The attacker then issues authenticated HTTP requests from any IP address, including addresses outside the configured allowlist. The server accepts the request and authorizes actions at the privilege level of the compromised account. See the GitHub Security Advisory and the VulnCheck Advisory on Frappe for upstream technical details.

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 Attacks

Detection Methods for CVE-2026-111388

Indicators of Compromise

  • Authentication events for users with configured restrict_ip values originating from IP addresses outside the allowlist.
  • API key or OAuth-authenticated requests from geographic regions or ASNs that do not match historical baselines for the account.
  • Successful header-based authentications occurring outside normal maintenance windows for service accounts.

Detection Strategies

  • Export user restrict_ip configurations and correlate against web server access logs for authenticated requests to /api/method/ endpoints.
  • Flag any authentication event where the source IP falls outside the per-user allowlist, treating session-based and token-based auth equivalently.
  • Alert on first-seen source IPs for accounts that use API keys or OAuth, especially administrative accounts.

Monitoring Recommendations

  • Centralize Frappe application logs and reverse proxy access logs for query-based IP enforcement review.
  • Monitor creation and rotation events for API keys and OAuth clients, and alert on unexpected issuance.
  • Baseline normal source IPs for each service account and generate alerts on deviation.

How to Mitigate CVE-2026-111388

Immediate Actions Required

  • Upgrade Frappe Framework to version 15.120.0 or 16.33.0 or later.
  • Rotate API keys and OAuth client secrets for any user account that relies on restrict_ip as a compensating control.
  • Audit user records for restrict_ip configurations and review authentication logs for prior out-of-range access.

Patch Information

Frappe addressed the vulnerability in Frappe Framework 15.120.0 and 16.33.0. The fix extends restrict_ip enforcement to API key, OAuth, and header-based authentication paths. Refer to the GitHub Security Advisory GHSA-h9jq-7pgf-hw8q for the full patch notes.

Workarounds

  • Enforce IP restrictions at the network layer using a reverse proxy, WAF, or firewall rule in front of the Frappe application.
  • Disable or scope down API key and OAuth access for high-privilege accounts until the upgrade is applied.
  • Require mutual TLS or VPN connectivity for all non-session authentication to the Frappe application.
bash
# Example nginx rule restricting /api access to a trusted CIDR
location /api/ {
    allow 10.0.0.0/8;
    deny all;
    proxy_pass http://frappe_backend;
}

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.