CVE-2026-72908
Received Received - Intake

SQL Injection in ERPNext Prior to 15.109.0 and 16.20.0

Vulnerability report for CVE-2026-72908, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-11
AI Q&A
2026-08-11
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
erpnext erpnext to 16.20.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an SQL injection flaw in ERPNext, a free and open source Enterprise Resource Planning tool. The issue occurs in the get_tax_template function where user-controlled input from request parameters like posting_date and args is used to construct an SQL WHERE clause without proper sanitization. This allows authenticated low-privilege users to inject malicious SQL code and extract sensitive information from the database.

Detection Guidance

To detect this vulnerability, check the ERPNext version running on your system. If it is below 15.109.0 or 16.20.0, the system is vulnerable. Review logs for unusual SQL queries or unauthorized data access patterns.

Impact Analysis

An attacker with low privileges could exploit this to read sensitive data from the ERPNext database, such as financial records, user credentials, or other confidential information. This could lead to data breaches, unauthorized access to business-critical data, and potential further attacks within the system.

Compliance Impact

This vulnerability could lead to non-compliance with GDPR and HIPAA by enabling unauthorized access to personal and sensitive data. GDPR requires protection of personal data, while HIPAA mandates safeguards for protected health information. A breach could result in legal penalties, fines, and reputational damage.

Mitigation Strategies

Immediately upgrade ERPNext to version 15.109.0 or 16.20.0 or later. Ensure all users with access to the system follow the principle of least privilege to reduce the risk of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72908. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart