CVE-2026-72908

ERPNext: Possibility of SQL injection due to missing validation

Published Aug 10, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.109.0 and 16.20.0, the get_tax_template function in erpnext/accounts/doctype/tax_rule/tax_rule.py constructs an SQL WHERE clause from request-influenced posting_date and args values, allowing an authenticated low-privilege user to inject SQL and extract sensitive information. This issue is fixed in versions 15.109.0 and 16.20.0.

Analysis

AI-generated

Technical impact

The vulnerability originates from the get_tax_template function in the ERPNext accounting module, which builds an SQL WHERE clause directly from user‑supplied posting_date and args values. Because the input is insufficiently validated, an attacker who is authenticated with low‑privilege rights can inject arbitrary SQL statements and retrieve sensitive database data. The flaw permits data exposure but does not grant arbitrary code execution or system compromise.

Affected Systems

Any installation of ERPNext delivered by Frappe that runs a version earlier than 15.109.0 or 16.20.0 is affected. The vulnerability exists within the tax_rule.doctype module of the ERPNext code base and therefore impacts all standard applications built with those releases.

Risk and Exploitability

The CVSS score of 6.5 classifies the flaw as moderate. Exploitation requires a valid user account, and the attack path is through the web interface or API that invokes get_tax_template. With no EPSS score published, the probability of exploitation cannot be quantified, but the flaw is not listed in CISA’s KEV catalog, indicating no known public exploits. Nevertheless, an authenticated user can extract data, making patching a prudent action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ERPNext to version 15.109.0 or later, or 16.20.0 or later, to eliminate the vulnerable code
  • If an immediate update is not possible, restrict the affected user roles from accessing the tax_rule.doctype or the get_tax_template API endpoint
  • Review any custom modules that modify or extend tax_rule to ensure all inputs are properly validated before being used in SQL queries

Generated by OpenCVE AI on August 10, 2026 at 22:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Frappe
Frappe erpnext
Vendors & Products Frappe
Frappe erpnext
Type Values Removed Values Added
Description ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.109.0 and 16.20.0, the get_tax_template function in erpnext/accounts/doctype/tax_rule/tax_rule.py constructs an SQL WHERE clause from request-influenced posting_date and args values, allowing an authenticated low-privilege user to inject SQL and extract sensitive information. This issue is fixed in versions 15.109.0 and 16.20.0.
Title ERPNext: Possibility of SQL injection due to missing validation
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2026, 10:14 PM
Reserved
Aug 10, 2026, 5:57 PM
Status
Deferred
Published
Aug 10, 2026, 9:17 PM
Modified
Oct 24, 2026, 3:10 PM