CVE-2026-65822
published high CVSS 3.1 · 7.6ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| frappe | — | erpnext< 15.116.0 · >= 16.0.0, < 16.23.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| frappe | erpnext | < 15.116.0 (affected)>= 16.0.0, < 16.23.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
6- https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e
- https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a
- https://github.com/frappe/erpnext/pull/55721
- https://github.com/frappe/erpnext/releases/tag/v15.116.0
- https://github.com/frappe/erpnext/releases/tag/v16.23.0
- https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959
Provider assertions
2GitHub_M · cna
ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7ec7c2fb2f6131b3341feae21cc956762c2d2b31e2bbc74300e57e18b8b03ddf
- Ingested
- 23 Sep 2026, 09:26:32 UTC
- Source record
- Official CVE record