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

CVE-2026-109598: Frappe Framework Auth Bypass Vulnerability

CVE-2026-109598 is an authorization bypass flaw in Frappe Framework that allows unauthorized users to send SMS messages impersonating the company. This post explains its impact, affected versions, and mitigation steps.

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

CVE-2026-109598 is a missing authorization vulnerability in the Frappe Framework. The flaw resides in the whitelisted send_sms API endpoint, which fails to verify that the calling user holds the permissions required to send SMS messages. Any authenticated user, regardless of role, can invoke the endpoint and transmit arbitrary SMS messages that impersonate the configured Company. The issue affects Frappe Framework versions prior to 15.120.0 and 16.x versions prior to 16.33.0. The weakness is classified under CWE-862: Missing Authorization.

Critical Impact

Low-privileged users can abuse the send_sms endpoint to send fraudulent SMS messages under the organization's identity, enabling phishing, social engineering, and reputational damage.

Affected Products

  • Frappe Framework versions prior to 15.120.0
  • Frappe Framework 16.x versions prior to 16.33.0
  • Applications built on Frappe (including ERPNext deployments) exposing the whitelisted SMS endpoint

Discovery Timeline

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

Technical Details for CVE-2026-109598

Vulnerability Analysis

Frappe exposes server-side Python functions to HTTP clients through a whitelisting mechanism. Methods decorated as whitelisted become callable through the framework's REST and RPC endpoints. The send_sms function was exposed via this mechanism but lacked role or permission checks on the caller. Any authenticated session, including users with minimal roles, can invoke the method and trigger outbound SMS delivery through the configured gateway.

Because messages originate from the tenant's configured SMS sender identity, recipients see the organization's Company name as the source. This allows an authenticated attacker to send spoofed messages that appear legitimate. Downstream effects include targeted phishing (smishing), fraudulent notifications to customers, and depletion of the tenant's SMS credits.

Root Cause

The root cause is a missing authorization check in the whitelisted handler. The endpoint relied on whitelisting for exposure but did not pair it with a frappe.has_permission call or role-based gate for the SMS Settings or related doctype. As a result, authentication was treated as sufficient for action authorization, violating the principle of least privilege.

Attack Vector

Exploitation requires only a valid authenticated session with low privileges on the target Frappe or ERPNext site. The attacker issues an HTTP POST to the framework's method invocation endpoint, targeting frappe.core.doctype.sms_settings.sms_settings.send_sms, and supplies recipient numbers and the message body. The server dispatches the request to the configured SMS provider without checking whether the caller is permitted to send SMS. No user interaction from recipients is required for the message to be sent.

See the GitHub Security Advisory GHSA-wrh5-p77r-jpvq and the VulnCheck advisory 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 Attacks

Detection Methods for CVE-2026-109598

Indicators of Compromise

  • Access log entries showing POST requests to /api/method/frappe.core.doctype.sms_settings.sms_settings.send_sms from user accounts that do not have SMS Manager or System Manager roles.
  • Unexpected spikes in outbound SMS volume reported by the configured SMS gateway or in the tenant's SMS usage dashboard.
  • Communication Log entries in Frappe showing SMS activity attributed to users who historically never send messages.

Detection Strategies

  • Correlate the user making the API call with their assigned role profile and flag send_sms invocations from users lacking SMS-related roles.
  • Baseline normal SMS send patterns per user and alert on deviations in volume, recipient diversity, or off-hours activity.
  • Monitor SMS gateway billing and delivery reports for messages that do not map to known business workflows.

Monitoring Recommendations

  • Forward Frappe application logs, nginx access logs, and SMS provider webhooks into a centralized SIEM for correlation.
  • Build a detection rule that triggers when any non-privileged account calls a whitelisted method tied to messaging, email, or notification doctypes.
  • Periodically audit the list of whitelisted methods against required permission decorators to detect regressions.

How to Mitigate CVE-2026-109598

Immediate Actions Required

  • Upgrade Frappe Framework to version 15.120.0 or later on the 15.x branch, or 16.33.0 or later on the 16.x branch.
  • Review audit logs for prior calls to send_sms and identify any messages sent by users outside expected SMS-sending roles.
  • Rotate SMS gateway API credentials if abuse is suspected, and notify recipients of any fraudulent messages.

Patch Information

The Frappe maintainers addressed the vulnerability in Frappe Framework 15.120.0 and 16.33.0 by adding an explicit permission check before the SMS send operation. Deployment details and commit references are documented in the GitHub Security Advisory GHSA-wrh5-p77r-jpvq. Operators running managed Frappe Cloud instances should confirm that the hosted version has been updated.

Workarounds

  • Restrict network access to the Frappe site so that only trusted users and systems can reach API method endpoints.
  • Temporarily remove or null out the SMS gateway configuration under SMS Settings to prevent outbound delivery until the patch is applied.
  • Review custom role assignments and remove unneeded roles from low-trust accounts to reduce the authenticated attack surface.
bash
# Upgrade Frappe to a patched version using bench
bench update --reset
bench version | grep frappe
# Confirm frappe >= 15.120.0 (15.x) or >= 16.33.0 (16.x)

# As a temporary workaround, clear SMS gateway settings
bench --site <site-name> console
>>> import frappe
>>> settings = frappe.get_doc("SMS Settings")
>>> settings.sms_gateway_url = ""
>>> settings.save()
>>> frappe.db.commit()

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.