# CVE-2026-72911: ERPNext: Possibility of server-side template injection due to missing validation

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-08-10T21:00:46.536Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- frappe erpnext: < 15.118.0; >= 16.0.0, < 16.29.0

## References

- <https://github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7>
- <https://github.com/frappe/erpnext/pull/56458>
- <https://github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28>
- <https://github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39>
- <https://github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465>
- <https://github.com/frappe/erpnext/releases/tag/v15.118.0>
- <https://github.com/frappe/erpnext/releases/tag/v16.29.0>

## Sources

- CVE List: [CVE-2026-72911](https://www.cve.org/CVERecord?id=CVE-2026-72911), CVE Terms of Use, modified 2026-08-13
- NVD: [CVE-2026-72911](https://nvd.nist.gov/vuln/detail/CVE-2026-72911), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-72911 · Whole record: https://cve.day/CVE-2026-72911.json · Rebuilt by cve.day 2026-11-25T22:59:32.175Z
