Skip to content

CVE-2026-65822 ERPNext: SQL Injection in "Inactive Customers" report via unvalidated `doctype` filter

HighCVSS 7.6 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
frappe ERPNext = < 15.116.0; = >= 16.0.0, < 16.23.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
frappe ERPNext = < 15.116.0 No fix listed
frappe ERPNext = >= 16.0.0, < 16.23.0 No fix listed

References