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

CVE-2026-109602: Frappe Dashboard XSS Vulnerability

CVE-2026-109602 is a stored XSS flaw in Frappe dashboard chart filters that lets authenticated attackers inject malicious scripts. This post explains its technical details, affected versions, impact, 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-109602 Overview

CVE-2026-109602 is a stored cross-site scripting (XSS) vulnerability in the Frappe framework. The flaw affects Frappe versions before 15.118.0 and 16.x versions before 16.31.0. The vulnerability resides in dashboard chart filters, where jQuery renders user-supplied filter values as rich text instead of plain text. Authenticated attackers can persist malicious payloads in filter values. Those payloads execute in the browsers of any user who later views the affected dashboard chart. The weakness is classified as improper neutralization of input during web page generation [CWE-79].

Critical Impact

Authenticated attackers can inject persistent JavaScript into dashboard chart filters, hijacking sessions and performing actions in the context of victim users who load the dashboard.

Affected Products

  • Frappe framework versions before 15.118.0
  • Frappe framework 16.x versions before 16.31.0
  • Applications built on vulnerable Frappe releases, including ERPNext deployments

Discovery Timeline

  • 2026-10-12 - CVE-2026-109602 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109602

Vulnerability Analysis

The vulnerability exists in the dashboard chart filter rendering logic of the Frappe framework. Dashboard charts accept filter values from authenticated users and persist them to the database. When another user loads the chart, the stored filter value is reinserted into the Document Object Model (DOM) through a jQuery API that interprets the string as HTML rather than text. Any <script> tag or event handler attribute embedded in the filter value is executed in the viewer's browser session. The payload runs with the privileges of the viewing user, enabling session riding, data exfiltration, and unauthorized API calls against the Frappe backend. Administrators who load the compromised dashboard are a particularly high-value target because their sessions grant broad application control.

Root Cause

The root cause is unsafe rendering of untrusted input through jQuery methods such as .html() instead of .text(). Filter values are stored verbatim and later concatenated into dashboard chart markup without HTML entity encoding. The framework trusts the integrity of previously saved filter definitions and omits output encoding at the rendering layer.

Attack Vector

An authenticated user with permission to create or modify dashboard charts stores a filter whose value contains JavaScript, for example an <img> tag with an onerror handler. The payload is saved to the dashboard chart document. When any other authenticated user, including an administrator, opens the dashboard, jQuery parses the filter value as HTML and executes the embedded script in the victim's authenticated session.

No verified public exploitation code is available at this time. See the GitHub Security Advisory and the VulnCheck Stored XSS Advisory for additional technical detail.

Detection Methods for CVE-2026-109602

Indicators of Compromise

  • Dashboard chart documents containing filter values with HTML tags, <script> elements, or inline event handlers such as onerror, onload, or onclick.
  • Unexpected outbound requests from browser sessions immediately after loading a Frappe dashboard.
  • New or modified dashboard chart records authored by low-privileged accounts shortly before administrator session anomalies.

Detection Strategies

  • Query the Frappe database for tabDashboard Chart rows whose filters_json field contains angle brackets, javascript:, or common XSS keywords.
  • Enable and monitor Content Security Policy (CSP) violation reports to surface inline script executions originating from dashboard pages.
  • Correlate authentication audit logs with dashboard load events to identify sessions where privilege escalation activity follows a chart view.

Monitoring Recommendations

  • Alert on edits to dashboard chart filter definitions made by non-administrative roles.
  • Capture browser console errors and CSP reports from users who load dashboards after a filter edit event.
  • Review web server logs for anomalous API calls issued from administrator sessions during dashboard rendering windows.

How to Mitigate CVE-2026-109602

Immediate Actions Required

  • Upgrade Frappe to version 15.118.0 or later on the 15.x branch, or to 16.31.0 or later on the 16.x branch.
  • Audit existing dashboard chart filter values and remove any entries containing HTML or script content.
  • Restrict dashboard chart creation and modification permissions to trusted roles until patching is complete.

Patch Information

The Frappe maintainers released fixes in versions 15.118.0 and 16.31.0. Upgrade instructions and the full fix details are published in the GitHub Security Advisory GHSA-hxfh-hh23-fvch. The patch replaces unsafe rich-text rendering of filter values with text-only output encoding.

Workarounds

  • Revoke the Dashboard Manager and equivalent roles from non-trusted users to limit who can store filter values.
  • Deploy a strict Content Security Policy that forbids inline script execution on the Frappe application origin.
  • Place the Frappe interface behind a web application firewall rule that blocks angle brackets and common XSS tokens in dashboard chart API payloads.
bash
# Upgrade Frappe using the bench CLI
bench update --reset
bench switch-to-branch version-15 frappe --upgrade   # 15.x deployments
# or
bench switch-to-branch version-16 frappe --upgrade   # 16.x deployments
bench --site all 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.