
🚨Critical - ERPNext SSTI/RCE via frappe.render_template restrict_globals Bypass (CVE-2026-65974) ERPNext exposes frappe.render_template without enforcing restrict_globals, letting low-privileged authenticated users cross permission boundaries and inject server-side templates. Crafted template payloads can execute arbitrary code on the server (RCE). Instances not exposing render_template to untrusted input are not impacted. 👉Affected: erpnext < 15.111.0 and >= 16.0.0 < 16.22.0 | Upgrade to 15.111.0 / 16.22.0
Post summary
A critical SSRF/RCE vulnerability (CVE‑2026‑65974) exists in ERPNext for certain versions due to improper template rendering – users should update to the patched releases 15.111.0 or 16.22.0.
