Skip to main content
EPSS 0.5%top 62%

CVE-2026-65822: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in frappe erpnext

0
High
VulnerabilityCVE-2026-65822cvecve-2026-65822cwe-89
Published: 08/17/2026 (08/17/2026, 20:45:45 UTC)
Source: CVE Database V5
Vendor/Project: frappe
Product: erpnext

Description

CVE-2026-65822 is a high-severity SQL injection vulnerability in ERPNext, an open-source ERP tool. Versions prior to 15.116.0 and between 16.0.0 and before 16.23.0 allow an authenticated user to inject malicious SQL via an unvalidated doctype filter in specific report files. This can lead to unauthorized data extraction and database query manipulation. The issue is fixed in versions 15.116.0 and 16.23.0.

CVSS v3.1

Score 7.6high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Affected software

frappe

erpnext

Affected versions
<15.116.0>=16.0.0 <16.23.0
GitHub Actionsmore threats →ai
frappe/erpnext
pkg:github/frappe/erpnext
Affected versions
<15.116.0<16.23.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 00:16:52 UTC

Technical Analysis

ERPNext versions before 15.116.0 and from 16.0.0 up to but not including 16.23.0 contain an SQL injection vulnerability in erpnext/selling/report/inactive_customers/inactive_customers.py. The vulnerability arises because the doctype filter parameter is not validated and is directly interpolated into raw SQL queries in the functions get_sales_details and get_last_sales_amt. This flaw allows an authenticated user to extract sensitive information and manipulate database queries. The vulnerability is addressed in versions 15.116.0 and 16.23.0.

Potential Impact

An authenticated user can exploit this vulnerability to perform SQL injection attacks, potentially extracting sensitive information from the database and manipulating database queries. The CVSS score of 7.6 reflects a high impact with confidentiality and availability affected, and integrity partially impacted.

Mitigation Recommendations

Upgrade ERPNext to version 15.116.0 or later if using the 15.x branch, or to version 16.23.0 or later if using the 16.x branch. These versions contain the official fix for this SQL injection vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-22T23:16:47.752Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a83758abf8831d5398e091d

Added to database: 08/17/2026, 20:56:42 UTC

Last enriched: 09/12/2026, 00:16:52 UTC

Last updated: 10/02/2026, 04:13:13 UTC

Views: 74

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses