---
id: CVE-2026-54524
title: Frappe HR is an open-source human resources management solution (HRMS)
summary: >-
  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/repo…
severity: high
cvss: 7.1
cvssVector: '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'
cwe:
  - CWE-89
vendor: frappe
product: hrms
affected:
  - hrms < 16.7.0
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T19:16:50.673'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54524'
references:
  - url: >-
      https://github.com/frappe/hrms/commit/b16148531954531a448dafdff20dc61882430ee9
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/hrms/pull/4515'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/hrms/releases/tag/v16.7.0'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/hrms/security/advisories/GHSA-2gv7-x4h2-3737'
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T19:00:29.502131Z'
cvssSource: cna
ingestedAt: '2026-09-17T19:26:25.317Z'
epss: 0.00278
epssPercentile: 0.20511
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
