Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-54524Frappe HR: SQL Injection in HRMS Salary Payments Based on Payment Mode Report
High 7.1
In plain English
A high-severity SQL injection in hrms from frappe. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities).
Official description
Frappe HR is an open-source human resources management solution (HRMS). Prior to 16.7.0, an authenticated user with the HR User role can inject SQL through filters in the Salary Payments Based on Payment Mode report. In hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py, get_conditions constructs filter clauses from user-controlled values and get_data incorporates those clauses into a string-formatted SQL query, allowing extraction of arbitrary database data. This issue is fixed in 16.7.0.
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/frappe/hrms/security/advisories/GHSA-2gv7-x4h2-3737 x_refsource_CONFIRM
- https://github.com/frappe/hrms/pull/4515 x_refsource_MISC
- https://github.com/frappe/hrms/commit/b16148531954531a448dafdff20dc61882430ee9 x_refsource_MISC
- https://github.com/frappe/hrms/releases/tag/v16.7.0 x_refsource_MISC