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

CVE-2026-111939: Frappe Helpdesk Auth Bypass Vulnerability

CVE-2026-111939 is an authorization bypass flaw in Frappe Helpdesk that lets authenticated users impersonate other customers and plant phishing tickets. 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-111939 Overview

CVE-2026-111939 is an authorization bypass vulnerability in Frappe Helpdesk versions before 1.26.0. The flaw resides in the hd_ticket.api.new endpoint, which accepts a client-controlled raised_by value without validating it against the authenticated session user. Any authenticated portal user can supply another customer's email address in the raised_by field to create tickets that appear to originate from the victim. The attacker can then invoke get_ticket_activities to read replies posted to the forged ticket. The weakness is classified under CWE-639: Authorization Bypass Through User-Controlled Key.

Critical Impact

Authenticated portal users can plant phishing tickets in victims' portals and read support agent replies, enabling social engineering and limited information disclosure.

Affected Products

  • Frappe Helpdesk versions prior to 1.26.0
  • Deployments exposing the hd_ticket.api.new endpoint to portal users
  • Self-hosted and cloud Frappe Helpdesk instances with customer portal access enabled

Discovery Timeline

  • 2026-10-19 - CVE-2026-111939 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111939

Vulnerability Analysis

Frappe Helpdesk exposes a whitelisted API endpoint, hd_ticket.api.new, that creates HD Ticket documents on behalf of portal users. In vulnerable versions, the handler accepts the full ticket document from the client, including the raised_by field used to associate the ticket with a customer identity. The server does not overwrite or validate raised_by against frappe.session.user, so an authenticated attacker can supply an arbitrary email.

Once the ticket is created with a forged raised_by, the victim sees the attacker-crafted ticket inside their own portal view. The attacker retains access through the ticket document ID and can call get_ticket_activities to retrieve replies agents or the victim post. This creates a two-way channel usable for phishing lures and limited data exposure.

Root Cause

The root cause is trust in client-supplied data for an authorization-relevant field. The ticket creation path sets via_customer_portal from the session but omits binding raised_by to the session user, violating the principle that identity attributes must be server-derived.

Attack Vector

Exploitation requires an authenticated portal account and user interaction with the forged ticket. The attacker issues a POST request to hd_ticket.api.new with a JSON body containing the victim's email in raised_by, then polls get_ticket_activities for the resulting ticket ID.

python
    doc["doctype"] = "HD Ticket"
    doc["via_customer_portal"] = bool(frappe.session.user)
    doc["attachments"] = attachments
+    doc["raised_by"] = frappe.session.user
    d = frappe.get_doc(doc).insert()
    return d

Source: GitHub Commit 1186367 — the patch forces raised_by to the session user, overriding any attacker-supplied value.

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-111939

Indicators of Compromise

  • HD Ticket records where the document owner field does not match the raised_by email address.
  • API access log entries showing calls to hd_ticket.api.new with a raised_by parameter in the request payload.
  • Unexpected tickets appearing in a customer's portal that the customer did not submit.
  • Repeated get_ticket_activities calls from a user who is neither the ticket owner nor assigned agent.

Detection Strategies

  • Query the tabHD Ticket table for rows where owner != raised_by and via_customer_portal = 1; investigate any mismatches created before upgrading to 1.26.0.
  • Review web server access logs for POST requests to /api/method/helpdesk.helpdesk.doctype.hd_ticket.api.new and correlate the authenticated session user with the submitted raised_by value.
  • Alert on portal users accessing a high volume of distinct ticket IDs via get_ticket_activities within short time windows.

Monitoring Recommendations

  • Enable Frappe application-level audit logging for HD Ticket document creation and track the owner versus raised_by relationship.
  • Forward Frappe and reverse-proxy logs to a centralized SIEM for retention and correlation.
  • Monitor outbound email volume from the helpdesk instance for spikes that may indicate phishing-ticket enumeration.

How to Mitigate CVE-2026-111939

Immediate Actions Required

  • Upgrade Frappe Helpdesk to version 1.26.0 or later, which binds raised_by to the session user during API ticket creation.
  • Audit existing tickets where owner differs from raised_by and notify affected customers of any confirmed forgeries.
  • Rotate portal user credentials for any accounts observed abusing the hd_ticket.api.new endpoint.

Patch Information

The fix is contained in commits 1186367f3616a605440e73e6a08eacbbcb9b92d9 and c778f533b24b1dee0c75b206979a9bc4b1be0de2, released in Frappe Helpdesk v1.26.0. The patch adds a single line in helpdesk/doctype/hd_ticket/api.py that assigns doc["raised_by"] = frappe.session.user before document insertion. Additional context is available in GitHub Security Advisory GHSA-xf93-jjcj-44vm and the VulnCheck Advisory.

Workarounds

  • If immediate patching is not possible, restrict access to the hd_ticket.api.new endpoint via reverse-proxy rules that drop requests containing a raised_by field in the body.
  • Apply a server-side hook that overrides raised_by with frappe.session.user for all HD Ticket creations originating from the portal.
  • Temporarily disable self-service portal ticket creation and route new tickets through email intake, which is not affected by this endpoint.
bash
# Upgrade Frappe Helpdesk to the patched release
bench get-app --branch v1.26.0 helpdesk https://github.com/frappe/helpdesk
bench --site <your-site> install-app helpdesk
bench --site <your-site> 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

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.