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

CVE-2026-109670: Frappe ERPNext Stored XSS Vulnerability

CVE-2026-109670 is a stored XSS flaw in Frappe ERPNext that allows attackers with write access to inject malicious scripts through record names. 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-109670 Overview

CVE-2026-109670 is a stored cross-site scripting (XSS) vulnerability in Frappe ERPNext, an open-source enterprise resource planning platform. The flaw affects versions prior to 15.110.0 and 16.x versions before 16.21.0. Record names in item master data are rendered without proper output escaping. An attacker with write access to item master data can inject malicious JavaScript into a record name. The payload executes in the browser of any operator who opens the affected page. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated attackers can plant persistent JavaScript payloads that execute against higher-privileged ERPNext operators, enabling session theft, UI manipulation, and lateral actions within the ERP interface.

Affected Products

  • Frappe ERPNext versions prior to 15.110.0
  • Frappe ERPNext 16.x versions prior to 16.21.0
  • Item master data module within ERPNext web interface

Discovery Timeline

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

Technical Details for CVE-2026-109670

Vulnerability Analysis

Frappe ERPNext stores item records that are later rendered in list views, forms, and dashboards used by operators across the organization. The item record name field is included in server-rendered HTML and client-side templates without HTML entity escaping. When a record name contains active content such as <script> tags or event-handler attributes, the browser interprets it as executable markup rather than text. The vulnerability is persistent, so every user visiting pages that display the compromised item triggers the payload. Exploitation requires network access to the application, low privileges with write access to item data, and user interaction from a victim who opens the affected page.

Root Cause

The root cause is missing output encoding on the record name field. The server trusts stored values and serializes them directly into HTML contexts. No contextual sanitization or templating safeguard neutralizes script payloads before rendering. This matches the pattern described in [CWE-79].

Attack Vector

An attacker authenticates to the ERPNext application with an account authorized to create or modify item records. The attacker sets the item name to a payload such as an inline script or event-handler-bearing HTML. Any operator who navigates to a view that renders the item name executes the attacker-supplied JavaScript in their session context. Impact includes session token theft, forged ERP actions on behalf of the victim, data exfiltration from the DOM, and pivoting to administrative functions if a privileged user triggers the payload. Refer to the GitHub Security Advisory GHSA-m6x2-278g-pv2g and the VulnCheck Advisory on Stored XSS for additional details.

Detection Methods for CVE-2026-109670

Indicators of Compromise

  • Item records whose name field contains HTML tags such as <script>, <img, <svg, or inline event handlers like onerror= and onload=.
  • Browser console errors or Content Security Policy violations originating from ERPNext list and form pages.
  • Unexpected outbound requests from authenticated operator browsers to attacker-controlled domains shortly after opening an item page.

Detection Strategies

  • Query the ERPNext database for item records whose names contain angle brackets, equals signs, or JavaScript keywords, and review them for malicious content.
  • Review audit logs for item creation or modification events performed by low-privileged accounts preceding reports of UI anomalies.
  • Instrument the browser with a strict Content Security Policy and alert on script-src violations observed by operators.

Monitoring Recommendations

  • Monitor Frappe application logs for repeated writes to the item doctype from accounts that normally only read data.
  • Alert on anomalous JavaScript-sourced network connections from workstations running ERPNext sessions.
  • Track user-agent and session telemetry for cookie or token theft indicators following interaction with item master pages.

How to Mitigate CVE-2026-109670

Immediate Actions Required

  • Upgrade Frappe ERPNext to version 15.110.0 or later on the 15.x branch, or 16.21.0 or later on the 16.x branch.
  • Audit all existing item records for names containing HTML or script syntax and sanitize or delete affected entries.
  • Restrict write access to item master data to trusted roles until the upgrade is applied.

Patch Information

The vendor has released fixed versions 15.110.0 and 16.21.0 that properly escape record names during rendering. Patch details are documented in the GitHub Security Advisory GHSA-m6x2-278g-pv2g.

Workarounds

  • Temporarily revoke the Item doctype write permission from non-administrative roles until patching completes.
  • Deploy a strict Content Security Policy that disallows inline scripts and restricts script-src to trusted origins.
  • Place a web application firewall rule in front of ERPNext to block requests that submit HTML or JavaScript syntax in the item name field.
bash
# Configuration example: upgrade ERPNext using the bench CLI
bench update --patch
bench switch-to-branch version-15 erpnext --upgrade
bench get-app --branch version-15 erpnext
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.