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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-08-17T20:44:20.818Z
- Modified: 2026-10-23T16:10:00.313Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## 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>

## Sources

- CVE List: [CVE-2026-65974](https://www.cve.org/CVERecord?id=CVE-2026-65974), CVE Terms of Use, modified 2026-08-18
- NVD: [CVE-2026-65974](https://nvd.nist.gov/vuln/detail/CVE-2026-65974), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-65974 · Whole record: https://cve.day/CVE-2026-65974.json · Rebuilt by cve.day 2026-11-25T22:59:33.394Z
