CVE-2026-65822 PUBLISHED

ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter

Assigner: GitHub_M
Reserved: 22.07.2026 Published: 17.08.2026 Updated: 17.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
CVSS Score: 7.6

Product Status

Vendor frappe
Product erpnext
Versions
  • Version < 15.116.0 is affected
  • Version >= 16.0.0, < 16.23.0 is affected

References

Problem Types

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') CWE