Frappe Framework 17.0.0-dev - Reflected DOM XSS in dashboard-view breadcrumb rendering

5.1

Medium

Detected by

Fluid Attacks AI SAST Scanner

Disclosed by

Oscar Uribe

Summary

Full name

Frappe Framework 17.0.0-dev - Reflected DOM XSS in dashboard-view breadcrumb rendering

Code name

State

Public

Release date

Affected product

Frappe Framework

Vendor

Frappe

Affected version(s)

17.0.0-dev

Vulnerability name

Reflected cross-site scripting (XSS)

Remotely exploitable

Yes

CVSS v4.0 vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

CVSS v4.0 base score

5.1

Exploit available

Yes

Description

A Reflected Cross-Site Scripting (XSS) vulnerability exists in Frappe Framework version 17.0.0-dev due to improper neutralization of user-controlled input in the dashboard-view component. The breadcrumb generation logic reads route data directly from the browser URL and injects it into the page without performing adequate output encoding or sanitization.

A specially crafted URL can contain malicious HTML or JavaScript within a route segment. The router decodes the attacker-controlled segment and passes it to the breadcrumb rendering logic. Subsequently, set_dashboard_breadcrumb() inserts the value into the DOM through jQuery HTML parsing, causing the injected content to be interpreted as active markup rather than plain text.

An attacker can exploit this vulnerability by enticing a victim to visit a crafted URL. Successful exploitation results in arbitrary JavaScript execution in the context of the victim's session, potentially leading to session hijacking, unauthorized actions, data disclosure, or other impacts associated with reflected cross-site scripting vulnerabilities.

Vulnerability

Case A: reflected XSS via dashboard-view/<payload> route segment

  1. Source: attacker-controlled route segment in URL path.

  2. Propagation:

    • frappe.router.parse() splits route and applies decodeURIComponent via decode_component.

    • decoded value is available in frappe.get_route()[1].

  3. Sink:

    • set_dashboard_breadcrumb() builds HTML using template literal with unescaped docname and appends via jQuery:

    • $(`<li><a href="${dashboard_route}">${__(docname)}</a></li>`).appendTo(...)

  4. Impact: injected HTML is parsed and event handlers execute (reflected DOM XSS).

Relevant code:

  • frappe/frappe/public/js/frappe/router.js:154-158

  • frappe/frappe/public/js/frappe/router.js:568-570

  • frappe/frappe/public/js/frappe/views/breadcrumbs.js:84-87

  • frappe/frappe/public/js/frappe/views/breadcrumbs.js:253-257

PoC

Browser URL PoC

Open while authenticated in Desk:

http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Dalert(9091)%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Dalert(9091)%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Dalert(9091)%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Dalert(9091)%3E

Non-dialog deterministic payload:

http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Ddocument.body.dataset.bcxss%3D1%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Ddocument.body.dataset.bcxss%3D1%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Ddocument.body.dataset.bcxss%3D1%3E
http://localhost:18080/desk/dashboard-view/%3Cimg%20src%3Dx%20onerror%3Ddocument.body.dataset.bcxss%3D1%3E

Expected result:

  • JavaScript executes from the injected breadcrumb node.

Evidence of Exploitation

  • Static evidence:

Our security policy

We have reserved the ID CVE-2026-50701 to refer to this issue from now on.

System Information

  • Frappe Framework

  • Version 17.0.0-dev

  • Operating System: Any

References

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.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

Get an AI summary of Fluid Attacks

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2026 Fluid Attacks. We hack your software.

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

Get an AI summary of Fluid Attacks

© 2026 Fluid Attacks. We hack your software.

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

Get an AI summary of Fluid Attacks

© 2026 Fluid Attacks. We hack your software.