Description
ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.118.0 and 16.29.0, the validate_template and render_template calls in erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py render subject, body, and pdf_name fields with unrestricted globals including frappe.utils, allowing an authenticated user with a common operational role to inject template expressions, execute arbitrary server-side code, and read data across the application. This issue is fixed in versions 15.118.0 and 16.29.0.
Published: 2026-08-10
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an authenticated user with a common operational role to inject server‑side template expressions into the subject, body, or pdf_name fields of a Process Statement of Accounts. Because the validate_template and render_template functions were called with unrestricted global variables, the injected expressions can execute arbitrary server‑side code and read data throughout the application. This flaw is classified as a Server‑Side Template Injection (CWE-1336) and carries a CVSS v3.1 score of 9.9, indicating critical severity.

Affected Systems

ERPNext sites running any version of the ERPNext code base prior to the release of 15.118.0 for the 15.x series and 16.29.0 for the 16.x series are affected. The vulnerability is present in the erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py module, which is part of the standard ERPNext deployment.

Risk and Exploitability

Because the flaw requires only an authenticated user with a common operational role, the attack vector is likely a legitimate login followed by an editor of statement documents. The CVSS score of 9.9 reflects the high impact and ease of exploitation. The EPSS score is not available, so the current probability of active exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, but the combination of high severity, wide applicability, and the required authentication means that the risk to organizations remains significant.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest ERPNext patch by upgrading to version 15.118.0 or 16.29.0, which removes the unrestricted globals from the template rendering logic.
  • If an upgrade is not immediately possible, restrict the fields that are rendered as templates by sanitizing the subject, body, and pdf_name inputs or by configuring the application to disallow user‑supplied template executables.
  • Continuously monitor application logs for messages related to server‑side template execution and enforce least‑privilege permissions for users who can edit statement documents.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, '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:15:00 +0000

Type Values Removed Values Added
Description ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.118.0 and 16.29.0, the validate_template and render_template calls in erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py render subject, body, and pdf_name fields with unrestricted globals including frappe.utils, allowing an authenticated user with a common operational role to inject template expressions, execute arbitrary server-side code, and read data across the application. This issue is fixed in versions 15.118.0 and 16.29.0.
Title ERPNext: Possibility of server-side template injection due to missing validation
Weaknesses CWE-1336
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T15:51:32.962Z

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

Link: CVE-2026-72911

cve-icon Vulnrichment

Updated: 2026-08-13T15:51:27.950Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-13T16:19:02.830

Link: CVE-2026-72911

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine