High severity · published Aug 17, 2026
CVE-2026-65822
ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
7.6
CVSS
0.5%
EPSS
No
On KEV
Description
ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.116.0 and 16.23.0, erpnext/selling/report/inactive_customers/inactive_customers.py accepts an unvalidated doctype filter and interpolates it into raw SQL in get_sales_details and get_last_sales_amt, allowing an authenticated user to extract sensitive information and manipulate database queries. This issue is fixed in versions 15.116.0 and 16.23.0.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ER
erpnext · frappe
< 15.116.0; >= 16.0.0, < 16.23.0 · source: vendor
Affected product
ER
erpnext
frappe
More from erpnext
9.9
CVE-2026-65974
ERPNext: Server-Side Template Injection leading to Remote Code Execution
9.9
CVE-2026-72911
ERPNext: Possibility of server-side template injection due to missing validation
9.9
CVE-2026-44442
ERPNext: Unauthorised Document modification due to missing validation
9.8
CVE-2026-38431
ERPNext v15.103.1 and before is vulnerable to Server-Side Template Injection (SSTI)
9.6
CVE-2025-67289
An arbitrary file upload vulnerability in the Attachments module of Frappe Framework v15.89.0 allows attackers to execute arbitrary code via uploading a crafted XML file