Frappe Framework 17.0.0-dev - Stored XSS in Auto Repeat dashboard schedule rendering
4.6
Medium
Detected by

Fluid Attacks AI SAST Scanner
Disclosed by
Oscar Uribe
Summary
Full name
Frappe Framework 17.0.0-dev - Stored XSS in Auto Repeat dashboard schedule rendering
Code name
State
Public
Release date
Affected product
Frappe Framework
Vendor
Frappe
Affected version(s)
17.0.0-dev
Vulnerability name
Stored cross-site scripting (XSS)
Vulnerability type
Remotely exploitable
Yes
CVSS v4.0 vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS v4.0 base score
4.6
Exploit available
Yes
CVE ID(s)
Description
A Stored Cross-Site Scripting (XSS) vulnerability exists in Frappe Framework version 17.0.0-dev. An authenticated attacker with write access to Auto Repeat can persist HTML/JavaScript in reference_document using a whitelisted write path and trigger script execution when users open the affected Auto Repeat form.
The client renders schedule rows into dashboard HTML via template interpolation and appends them into the DOM without escaping.
Vulnerability
The exploitable path is:
Source: attacker-controlled
referencesent to whitelistedupdate_reference(docname, reference).Persistence:
update_referencewrites directly withdoc.db_set("reference_document", str(reference)).Server response:
get_auto_repeat_schedule()returnsreference_documentinsideschedule_details.Client template rendering:
frappe.render_template("auto_repeat_schedule", { schedule_details: r.message })template includes
{{ schedule_details[i].reference_document }}
DOM sink:
frm.dashboard.add_section(body_html, ...)Section.make()appends HTML viathis.body.append(this.df.body_html).
Impact: attacker payload executes in victim browser when opening/reloading the target Auto Repeat form.
Relevant code:
frappe/frappe/automation/doctype/auto_repeat/auto_repeat.py:609-613frappe/frappe/automation/doctype/auto_repeat/auto_repeat.py:199-226frappe/frappe/automation/doctype/auto_repeat/auto_repeat.js:112-121frappe/frappe/automation/doctype/auto_repeat/auto_repeat_schedule.html:11-16frappe/frappe/public/js/frappe/form/dashboard.js:91-101frappe/frappe/public/js/frappe/form/section.js:58-60frappe/frappe/public/js/frappe/microtemplate.js:67-84
PoC
Reproduction used in validation environment
Login and keep session cookie:
Ensure
ToDois allowed for auto repeat and containsauto_repeatlink field (lab setup step):
Create a valid Auto Repeat linked to an existing ToDo:
Inject payload through whitelisted
update_reference:
Open target form:
http://localhost:18080/desk/auto-repeat/AUT-AR-00001
Expected result:
Browser executes
alert(9991)when dashboard schedule section is rendered.
Evidence of Exploitation
Static evidence:

Our security policy
We have reserved the ID CVE-2026-50703 to refer to this issue from now on.
System Information
Frappe Framework
Version 17.0.0-dev
Operating System: Any
References
Github Repository: https://github.com/frappe/frappe
Mitigation
There is currently no patch available for this vulnerability.
Credits
The vulnerability was discovered by Oscar Uribe from Fluid Attacks' Offensive Team using the AI SAST Scanner.
Timeline
Vulnerability discovered
Vendor contacted
Vendor replied
Public disclosure
Does your application use this vulnerable software?
During our free trial, our tools assess your application, identify vulnerabilities, and provide recommendations for their remediation.













