{"id":"CVE-2026-72911","aliases":["EUVD-2026-55833","GHSA-qq49-v74j-hjh7"],"status":"published","title":"ERPNext: Possibility of server-side template injection due to missing validation","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.","severity":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00717,"percentile":0.5423,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1336"],"published":"2026-08-10T21:00:46Z","modified":"2026-10-28T02:30:33Z","products":[{"vendor":"frappe","product":"erpnext"}],"references":[{"url":"https://github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/frappe/erpnext/pull/56458","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v15.118.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/frappe/erpnext/releases/tag/v16.29.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72911.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72911","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-72911","title":"ERPNext: Possibility of server-side template injection due to missing validation","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.","status":"published","published":"2026-08-10T21:00:46.536Z","modified":"2026-08-13T15:51:32.962Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:19:51.663093Z"}],"euvd":[{"id":"EUVD-2026-55833","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.","status":"published","published":"2026-08-10T21:00:46Z","modified":"2026-08-13T15:51:32Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T18:01:55.61982Z"}],"nvd":[{"id":"CVE-2026-72911","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.","status":"published","published":"2026-08-10T21:17:25.993Z","modified":"2026-10-24T15:10:00.19Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:12:36.102748Z"}],"osv":[{"id":"CVE-2026-72911","title":"ERPNext: Possibility of server-side template injection due to missing validation","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.","status":"published","published":"2026-08-10T21:00:46.536Z","modified":"2026-10-28T02:30:33.607672365Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T15:45:15.88521Z"}]}}
