CVE-2026-72911: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in frappe erpnext
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.
AI Analysis
Technical Summary
ERPNext versions prior to 15.118.0 and 16.29.0 contain an improper neutralization of special elements used in a template engine (CWE-1336). 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. This allows an authenticated user with a common operational role to inject template expressions, leading to arbitrary server-side code execution and data disclosure across the application. The vulnerability has a CVSS 3.1 score of 9.9, indicating critical severity. It is fixed in versions 15.118.0 and 16.29.0.
Potential Impact
An authenticated user with a common operational role can exploit this vulnerability to execute arbitrary code on the server and read sensitive data across the ERPNext application. This compromises confidentiality, integrity, and availability of the system, potentially leading to full system compromise.
Mitigation Recommendations
Upgrade ERPNext to version 15.118.0 or later, or 16.29.0 or later, where this vulnerability is fixed. No other mitigation or temporary fix is indicated. Patch status is not explicitly stated but the fix versions are known; therefore, applying these updates is the recommended remediation.
CVE-2026-72911: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in frappe erpnext
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.
CVSS v3.1
Score 9.9critical
Affected software
frappe
erpnext
pkg:github/frappe/erpnextRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ERPNext versions prior to 15.118.0 and 16.29.0 contain an improper neutralization of special elements used in a template engine (CWE-1336). 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. This allows an authenticated user with a common operational role to inject template expressions, leading to arbitrary server-side code execution and data disclosure across the application. The vulnerability has a CVSS 3.1 score of 9.9, indicating critical severity. It is fixed in versions 15.118.0 and 16.29.0.
Potential Impact
An authenticated user with a common operational role can exploit this vulnerability to execute arbitrary code on the server and read sensitive data across the ERPNext application. This compromises confidentiality, integrity, and availability of the system, potentially leading to full system compromise.
Mitigation Recommendations
Upgrade ERPNext to version 15.118.0 or later, or 16.29.0 or later, where this vulnerability is fixed. No other mitigation or temporary fix is indicated. Patch status is not explicitly stated but the fix versions are known; therefore, applying these updates is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-10T17:57:26.143Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7b1b30bf8831d539bca9d6
Added to database: 08/11/2026, 12:53:04 UTC
Last enriched: 08/11/2026, 12:56:24 UTC
Last updated: 09/25/2026, 14:59:21 UTC
Views: 83
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.