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.
Published: 2026-08-10
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 12 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 11 Aug 2026 03:00:00 +0000

Type Values Removed Values Added
First Time appeared Frappe
Frappe erpnext
Vendors & Products Frappe
Frappe erpnext

Mon, 10 Aug 2026 21:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-12T22:14:31.632Z

Reserved: 2026-08-10T17:57:26.143Z

Link: CVE-2026-72908

cve-icon Vulnrichment

Updated: 2026-08-12T22:08:05.324Z

cve-icon NVD

Status : Received

Published: 2026-08-10T21:17:25.593

Modified: 2026-08-12T23:17:22.893

Link: CVE-2026-72908

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T02:45:06Z

Weaknesses
  • CWE-89

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