CVE-2026-65822
ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
CVSS Score
7.6
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-89 |
| Vendor | frappe |
| Product | erpnext |
| Published | Aug 17, 2026 |
Stay Ahead of the Next One
Get instant alerts for frappe erpnext
Be the first to know when new high vulnerabilities affecting frappe erpnext are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low
Affected Versions
frappe / erpnext
< 15.116.0 >= 16.0.0, < 16.23.0
References
github.com: https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959 github.com: https://github.com/frappe/erpnext/pull/55721 github.com: https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e github.com: https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a github.com: https://github.com/frappe/erpnext/releases/tag/v15.116.0 github.com: https://github.com/frappe/erpnext/releases/tag/v16.23.0