# CVE-2026-65974: ERPNext: Server-Side Template Injection leading to Remote Code Execution

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 15.111.0, 16.22.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-17 · Modified: 2026-08-18
- Record: https://cvemate.com/vulnerability/CVE-2026-65974 · JSON: https://cvemate.com/vulnerability/CVE-2026-65974/json

## Description

```text
ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.111.0 and 16.22.0, limited authenticated users can cross a permission boundary in Frappe safe execution because frappe.render_template is exposed without forcing restrict_globals, allowing server-side template injection and remote code execution. This issue is fixed in versions 15.111.0 and 16.22.0.
```

## Signals

- CVSS: 9.9 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.557%, percentile 47.905%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- frappe erpnext: \< 15.111.0 \| ≥ 16.0.0, \< 16.22.0

## References

- <https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr>
- <https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c>
- <https://github.com/frappe/erpnext/releases/tag/v15.111.0>
- <https://github.com/frappe/erpnext/releases/tag/v16.22.0>

---

Data as of 2026-12-05T12:51:38.564Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
