---
id: CVE-2026-72911
title: ERPNext is a free and open source Enterprise Resource Planning tool
summary: >-
  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.p…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-1336
published: '2026-08-10'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:55:04.493'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72911'
references:
  - url: >-
      https://github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28
    label: security-advisories@github.com
  - url: >-
      https://github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39
    label: security-advisories@github.com
  - url: >-
      https://github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/pull/56458'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/releases/tag/v15.118.0'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/releases/tag/v16.29.0'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00717
epssPercentile: 0.518
ingestedAt: '2026-09-09T21:22:45.526Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
