9.9critical
ERPNext: Possibility of server-side template injection due to missing validation
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.38% (higher than 34% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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
| Product or package | Versions | Reported by |
|---|---|---|
| frappe erpnext | < 15.118.0, >= 16.0.0, < 16.29.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
ERPNext es una herramienta de Planificación de Recursos Empresariales (ERP) gratuita y de código abierto. Antes de las versiones 15.118.0 y 16.29.0, las llamadas a validate_template y render_template en erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py renderizan los campos subject, body y pdf_name con globales sin restricciones, incluyendo frappe.utils, lo que permite a un usuario autenticado con un rol operativo común inyectar expresiones de plantilla, ejecutar código arbitrario del lado del servidor y leer datos en toda la aplicación. Este problema está solucionado en las versiones 15.118.0 y 16.29.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72911 changed 2026-08-13 | CVE Terms of Use |
| NVD | CVE-2026-72911 changed 2026-10-24 | Public domain |