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-109604 Overview
CVE-2026-109604 is a stored cross-site scripting (XSS) vulnerability in Frappe ERPNext affecting versions before 15.112.0 and 16.x before 16.23.0. A tool view in the application interpolates stored record names into page markup without escaping them. An authenticated user who can create such records can inject malicious payloads into the record name field. Script execution then occurs in the browser session of any user who later opens the affected tool view. The flaw is tracked under [CWE-79] and documented in GitHub Security Advisory GHSA-734c-hv9r-mg2c.
Critical Impact
Authenticated attackers can execute arbitrary JavaScript in the sessions of other ERPNext users, enabling session hijacking, data theft, and privileged actions performed in the victim's context.
Affected Products
- Frappe ERPNext versions prior to 15.112.0
- Frappe ERPNext 16.x versions prior to 16.23.0
- Deployments exposing the vulnerable tool view to multiple user roles
Discovery Timeline
- 2026-10-12 - CVE-2026-109604 published to the National Vulnerability Database
- 2026-10-12 - NVD record last modified
Technical Details for CVE-2026-109604
Vulnerability Analysis
ERPNext renders a tool view that pulls record names from the database and injects them directly into HTML markup. The rendering path does not apply output encoding or sanitization to the stored values. Any attacker-controlled characters in those names, including <script> tags and event handlers, are evaluated by the browser as active content.
Because the payload is persisted in application storage, it executes every time a user opens the affected tool. The attacker needs only valid credentials with permission to create the backing records. Exploitation requires user interaction, specifically a victim navigating to the tool view, but it does not require the victim to perform any additional step beyond opening the page.
Executed script runs with the privileges of the viewing user. Administrators who open the tool can have their session cookies exfiltrated, CSRF tokens stolen, or privileged API calls issued on their behalf.
Root Cause
The root cause is missing output encoding when interpolating stored record names into the tool view template. The code treats the record name as trusted markup rather than untrusted data. This is a classic failure to enforce context-aware escaping at the template rendering boundary, categorized as Improper Neutralization of Input During Web Page Generation [CWE-79].
Attack Vector
An authenticated attacker with record creation privileges supplies a name containing HTML or JavaScript syntax. The malicious record persists in the ERPNext backend. When another user, often a higher-privileged operator, loads the tool view, the stored payload is rendered inline and executed by the browser. See the VulnCheck Stored XSS Advisory for additional context.
// No verified proof-of-concept is published for CVE-2026-109604.
// Refer to the GitHub Security Advisory for technical details.
Detection Methods for CVE-2026-109604
Indicators of Compromise
- Record names in ERPNext containing HTML tags, <script> elements, or JavaScript event handler attributes such as onerror= and onload=
- Unexpected outbound requests from browser sessions to attacker-controlled domains shortly after a user opens a tool view
- Audit log entries showing record creation by low-privilege users followed by sensitive actions attributed to administrators
Detection Strategies
- Query the ERPNext database for record name fields containing angle brackets, quotes, or JavaScript keywords
- Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution originating from ERPNext pages
- Review web proxy logs for anomalous requests initiated from authenticated ERPNext sessions
Monitoring Recommendations
- Alert on creation of records whose names contain non-alphanumeric control characters or markup syntax
- Monitor administrator session activity for unexpected API calls immediately following tool view navigation
- Forward ERPNext application and web server logs to a centralized analytics platform for correlation with endpoint telemetry
How to Mitigate CVE-2026-109604
Immediate Actions Required
- Upgrade ERPNext to version 15.112.0 or later on the 15.x branch
- Upgrade ERPNext to version 16.23.0 or later on the 16.x branch
- Audit existing records for malicious names and remove any payloads before patched users open the tool view
- Restrict record creation permissions to trusted roles until the upgrade is complete
Patch Information
Frappe published fixes in ERPNext 15.112.0 and 16.23.0. The patched versions apply proper output encoding when rendering stored record names in the affected tool view. Upgrade details and backport information are available in GitHub Security Advisory GHSA-734c-hv9r-mg2c.
Workarounds
- Enforce a strict Content Security Policy that disallows inline scripts to blunt payload execution
- Temporarily revoke create permissions on the DocType backing the vulnerable tool view for untrusted users
- Add input validation at the application layer to reject record names containing <, >, or quote characters
# Example upgrade using the bench CLI
bench update --patch
bench --site <site-name> migrate
bench version | grep erpnext
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

