Frappe SQL Injection Vulnerability in Dashboard Chart Permission Query

Vulnerability

A SQL injection vulnerability has been identified in the Frappe web application framework, specifically in versions prior to 15.74.2 and 14.96.15. This vulnerability allows attackers to execute malicious SQL queries through specially crafted requests, potentially leading to unauthorized access to sensitive information. The issue arises from improper validation in the permission query for dashboard charts, where certain chart types were not adequately checked. Notably, this vulnerability bypasses a previous patch intended to address a related SQL injection issue (CVE-2025-52895).

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries and access or modify sensitive information.

Reproduction

The vulnerability can be reproduced by sending requests that exploit the permission query for dashboard charts. This can be done by crafting SQL injection payloads that take advantage of the improper validation of chart types in the query. The injection point is in the 'Group By' chart type permission check, which, prior to the patch, did not properly validate or sanitize input, allowing for SQL injection attacks.

Remediation

Users are advised to upgrade to Frappe versions 15.74.2 or 14.96.15, where this vulnerability has been patched.

Added: Aug 20, 2025, 4:18 PM
Updated: Aug 20, 2025, 4:18 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
2.5
exploitability
6.4
remediation
7.7
relevance
0.4
threat
4.8
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.