Original 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.
Affected software
- ERPNext * repository or package match
Details
- Published
- 2026-08-11
- Last modified
- 2026-08-14
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H- CWE
- CWE-1336
- EPSS (30-day exploit probability)
- 0.72% (percentile 54)
References
- cve.org/CVE-2026-72911
- nvd.nist.gov/vuln/detail/CVE-2026-72911
- github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7
- github.com/frappe/erpnext/pull/56458
- github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28
- github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39
- github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465
- github.com/frappe/erpnext/releases/tag/v15.118.0
- github.com/frappe/erpnext/releases/tag/v16.29.0
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.