{"id":"CVE-2026-65822","published":"2026-08-17T20:45:45Z","modified":"2026-08-18T13:01:42Z","title":"ERPNext: SQL Injection in \"Inactive Customers\" report via unvalidated `doctype` filter","vendor":"frappe","product":"erpnext","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00464,"percentile":0.41073,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/frappe/erpnext/pull/55721","tags":["x_refsource_MISC"]},{"url":"https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e","tags":["x_refsource_MISC"]},{"url":"https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a","tags":["x_refsource_MISC"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v15.116.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v16.23.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":8.21},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"frappe","affectedVersions":[{"vendor":"frappe","product":"erpnext","versions":["< 15.116.0",">= 16.0.0, < 16.23.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T12:57:40.825451Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-60453","exploited":false,"provenance":"source"}}