ERPNext and Frappe Framework Stored Cross-Site Scripting Vulnerability via SVG Avatar Upload

Vulnerability

A stored cross-site scripting vulnerability has been identified in ERPNext version 15.83.2 and Frappe Framework version 15.86.0. The issue arises from improper validation of uploaded SVG avatar images, which allows attackers to embed malicious JavaScript. This payload is executed when an administrator clicks the image link to view the avatar, potentially leading to account takeover, privilege escalation, or full compromise of the affected ERPNext instance.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected JavaScript is executed in the context of the user viewing the avatar, typically an administrator. This could result in executing actions on behalf of the admin, unauthorized access to sensitive information, or manipulation of application data.

Reproduction

To reproduce this vulnerability, upload an SVG file as an avatar that contains embedded JavaScript. Once the file is uploaded, an administrator can view the avatar through its direct link, which will trigger the execution of the embedded script.

Added: Dec 3, 2025, 3:17 PM
Updated: Dec 3, 2025, 4:23 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
3.5
exploitability
5.0
remediation
0.0
relevance
1.3
threat
1.6
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.