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. Prior to versions 15.111.0 and 16.22.0, authenticated users with limited permissions can bypass permission boundaries due to unsafe exposure of frappe.render_template without restrict_globals. This leads to server-side template injection and remote code execution. The issue is fixed in versions 15.111.0 and 16.22.0.
AI Analysis
Technical Summary
ERPNext versions before 15.111.0 and between 16.0.0 (inclusive) and 16.22.0 (exclusive) expose the frappe.render_template function without enforcing restrict_globals. This improper neutralization of special elements in the template engine (CWE-1336) allows limited authenticated users to cross permission boundaries, resulting in server-side template injection and remote code execution. The vulnerability is addressed in ERPNext versions 15.111.0 and 16.22.0.
Potential Impact
An attacker with limited authenticated access can exploit this vulnerability to execute arbitrary code on the server, bypassing permission restrictions. This can lead to full compromise of the ERPNext server, including confidentiality, integrity, and availability impacts. The CVSS v3.1 score is 9.9 (critical), reflecting the high severity and ease of exploitation.
Mitigation Recommendations
Upgrade ERPNext to version 15.111.0 or later if using the 15.x branch, or to version 16.22.0 or later if using the 16.x branch. These versions include the official fix that enforces restrict_globals in frappe.render_template, preventing server-side template injection. No other mitigation is indicated by the vendor advisory.
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. Prior to versions 15.111.0 and 16.22.0, authenticated users with limited permissions can bypass permission boundaries due to unsafe exposure of frappe.render_template without restrict_globals. This leads to server-side template injection and remote code execution. The issue is fixed in versions 15.111.0 and 16.22.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 before 15.111.0 and between 16.0.0 (inclusive) and 16.22.0 (exclusive) expose the frappe.render_template function without enforcing restrict_globals. This improper neutralization of special elements in the template engine (CWE-1336) allows limited authenticated users to cross permission boundaries, resulting in server-side template injection and remote code execution. The vulnerability is addressed in ERPNext versions 15.111.0 and 16.22.0.
Potential Impact
An attacker with limited authenticated access can exploit this vulnerability to execute arbitrary code on the server, bypassing permission restrictions. This can lead to full compromise of the ERPNext server, including confidentiality, integrity, and availability impacts. The CVSS v3.1 score is 9.9 (critical), reflecting the high severity and ease of exploitation.
Mitigation Recommendations
Upgrade ERPNext to version 15.111.0 or later if using the 15.x branch, or to version 16.22.0 or later if using the 16.x branch. These versions include the official fix that enforces restrict_globals in frappe.render_template, preventing server-side template injection. No other mitigation is indicated by the vendor advisory.
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
Threat ID: 6a83758abf8831d5398e0925
Added to database: 08/17/2026, 20:56:42 UTC
Last enriched: 09/12/2026, 00:16:48 UTC
Last updated: 10/03/2026, 02:46:06 UTC
Views: 122
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.