ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
Summary
| CVE | CVE-2026-65822 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-17 21:16:46 UTC |
| Updated | 2026-08-18 13:17:27 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.6 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
EPSS: 0.002640000 probability, percentile 0.183170000 (date 2026-08-18)
Problem Types: CWE-89 | CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| 3.1 | CNA | DECLARED | 7.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
LowAvailability
LowCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959 | [email protected] | github.com | |
| github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a | [email protected] | github.com | |
| github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e | [email protected] | github.com | |
| github.com/frappe/erpnext/releases/tag/v15.116.0 | [email protected] | github.com | |
| github.com/frappe/erpnext/releases/tag/v16.23.0 | [email protected] | github.com | |
| github.com/frappe/erpnext/pull/55721 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.