SQL Injection in Frappe Erpnext
CVE-2026-65822
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L.
EPSS exploit prediction
EPSS: 0.005 (37.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 38th percentile — 37.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.005 · change: +0.002
Affected products
- Frappe Erpnext — versions < 15.116.0, >= 16.0.0, < 16.23.0
Weakness classification (CWE)
References
- github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959
- github.com/frappe/erpnext/pull/55721
- github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e
- github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a
- github.com/frappe/erpnext/releases/tag/v15.116.0
- github.com/frappe/erpnext/releases/tag/v16.23.0
Frequently asked questions
- What is CVE-2026-65822?
- CVE-2026-65822 is a high-severity vulnerability in Frappe Erpnext, classified under SQL Injection. CVSS score: 7.6/10. Published 2026-08-17.
- How severe is CVE-2026-65822?
- High severity. CVSS v3 base score is 7.6 out of 10.