Frappe ERPNext processes the subject, body, and pdf_name fields in erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py through validate_template and render_template calls. Before the fix, these calls used an unrestricted execution context that included the frappe.utils namespace. An authenticated user with a common operational role could place attacker-controlled template expressions in these fields; the server-side engine could then evaluate those expressions, execute arbitrary code on the server, and read data across the application. This is CWE-1336, caused by improper neutralization of special elements used in a template engine. The available evidence does not identify the exact role name, endpoint, or request sequence used to reach these fields.