{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-65822","id":"CVE-2026-65822","title":"ERPNext: SQL Injection in \"Inactive Customers\" report via unvalidated `doctype` filter","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 ","descriptionLong":"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.","published":"2026-08-17T20:45:45.647Z","updated":"2026-10-28T02:31:04.207612761Z","reserved":"2026-07-22T23:16:47.752Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","rating":"high","source":"OSV"}],"rating":"high","products":["frappe erpnext"],"affectedProducts":[{"vendor":"frappe","product":"erpnext","defaultStatus":null,"versions":[{"version":"< 15.116.0","status":"affected"},{"version":">= 16.0.0, < 16.23.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-89"],"aliases":["GHSA-x35x-4mvx-h959"],"references":[{"url":"https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/frappe/erpnext/pull/55721","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v15.116.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v16.23.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65822.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65822","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00464,"epssPercentile":0.40937,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-65822","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65822","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-65822","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-65822","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}