ERPNext: Possibility of server-side template injection due to missing validation
Summary
| CVE | CVE-2026-72911 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-10 21:17:25 UTC |
| Updated | 2026-08-13 16:19:02 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.9 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS: 0.003830000 probability, percentile 0.312240000 (date 2026-08-11)
Problem Types: CWE-1336 | CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.9 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.9 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7 | [email protected] | github.com | |
| github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39 | [email protected] | github.com | |
| github.com/frappe/erpnext/releases/tag/v15.118.0 | [email protected] | github.com | |
| github.com/frappe/erpnext/releases/tag/v16.29.0 | [email protected] | github.com | |
| github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465 | [email protected] | github.com | |
| github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28 | [email protected] | github.com | |
| github.com/frappe/erpnext/pull/56458 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.