CVE-2026-65974: frappe erpnext · Template Injection
Affects frappe erpnextSource CVE Database V5
Not known to be exploited · CVSS 9.9 Critical : upgrade to 16.22.0 or 15.111.0 as a priority.
Data as of 16 Nov 2026, 20:25 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 16.22.0, 15.111.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 17 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Upgrade erpnext and frappe/erpnext to 16.22.0 or 15.111.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| frappeerpnext | Affected
| Fixed in
|
| frappeerpnext | Affected
| Fixed in
|
GitHubfrappe/erpnextpkg:github/frappe/erpnextOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.
References
- github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr (opens in a new tab)
- github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c (opens in a new tab)
- github.com/frappe/erpnext/releases/tag/v15.111.0 (opens in a new tab)
- github.com/frappe/erpnext/releases/tag/v16.22.0 (opens in a new tab)