CVE-2026-65822CWE-89sql-injection

CVE-2026-65822

High · published August 18, 2026

CVSS v3.1
7.6
EPSS
0%
Percentile
39.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00464 · 39.2th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-08-18T01:16Z
References (6)
EPSS history
Timeline
  • 17 AUG 20:45Z
    ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter
    cvelistv5