CVE-2026-65822: ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
Vulnerability summary
CVE-2026-65822 is a high (CVSS 7.6) vulnerability in frappe erpnext. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 19.4% of scored vulnerabilities.
Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 17-08-2026PublishedVulnerability first disclosed.
- 18-08-2026Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- NVDNIST7.6HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
19%
Versus all other CVEs
30-day change
Decrease -0.20 pp
From 0.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Frappe1 product
- erpnext< 15.116.0 | ≥ 16.0.0, < 16.23.0
1 vendor · 1 product
References
6 links- github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959X Refsource CONFIRM
- github.com/frappe/erpnext/pull/55721X Refsource MISC
- github.com/frappe/erpnext/releases/tag/v15.116.0X Refsource MISC
- github.com/frappe/erpnext/releases/tag/v16.23.0X Refsource MISC