CVE-2026-65974: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in frappe erpnext
CVE-2026-65974 is a critical vulnerability in ERPNext, an open source ERP tool. Before versions 15.111.0 and 16.22.0, authenticated users with limited permissions could bypass permission boundaries due to improper restrictions in the frappe.render_template function. This flaw allows server-side template injection, potentially leading to remote code execution. The issue is resolved in versions 15.111.0 and 16.22.0.
AI Analysis
Technical Summary
ERPNext versions prior to 15.111.0 and 16.22.0 contain a server-side template injection vulnerability caused by improper neutralization of special elements in the frappe.render_template function. The function is exposed without enforcing restrict_globals, enabling limited authenticated users to cross permission boundaries within Frappe safe execution. This can lead to remote code execution on the server. The vulnerability is tracked as CWE-1336 and has a CVSS 3.1 score of 9.9, indicating critical severity. The flaw is fixed in ERPNext versions 15.111.0 and 16.22.0.
Potential Impact
Exploitation of this vulnerability allows an authenticated user with limited privileges to bypass permission boundaries and execute arbitrary code on the server via server-side template injection. This compromises confidentiality, integrity, and availability of the affected system, potentially leading to full system compromise.
Mitigation Recommendations
Upgrade ERPNext to version 15.111.0 or later, or 16.22.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is confirmed fixed in these versions.
CVE-2026-65974: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in frappe erpnext
Description
CVE-2026-65974 is a critical vulnerability in ERPNext, an open source ERP tool. Before versions 15.111.0 and 16.22.0, authenticated users with limited permissions could bypass permission boundaries due to improper restrictions in the frappe.render_template function. This flaw allows server-side template injection, potentially leading to remote code execution. The issue is resolved in versions 15.111.0 and 16.22.0.
CVSS v3.1
Score 9.9critical
Affected software
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.111.0 and 16.22.0 contain a server-side template injection vulnerability caused by improper neutralization of special elements in the frappe.render_template function. The function is exposed without enforcing restrict_globals, enabling limited authenticated users to cross permission boundaries within Frappe safe execution. This can lead to remote code execution on the server. The vulnerability is tracked as CWE-1336 and has a CVSS 3.1 score of 9.9, indicating critical severity. The flaw is fixed in ERPNext versions 15.111.0 and 16.22.0.
Potential Impact
Exploitation of this vulnerability allows an authenticated user with limited privileges to bypass permission boundaries and execute arbitrary code on the server via server-side template injection. This compromises confidentiality, integrity, and availability of the affected system, potentially leading to full system compromise.
Mitigation Recommendations
Upgrade ERPNext to version 15.111.0 or later, or 16.22.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is confirmed fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-23T18:15:14.580Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a83758abf8831d5398e0925
Added to database: 08/17/2026, 20:56:42 UTC
Last enriched: 08/17/2026, 21:11:15 UTC
Last updated: 08/18/2026, 01:04:01 UTC
Views: 6
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.