---
id: CVE-2026-65974
title: ERPNext is a free and open source Enterprise Resource Planning tool
summary: >-
  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 fo…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-1336
vendor: frappe
product: erpnext
affected:
  - erpnext < 15.111.0
  - 'erpnext >= 16.0.0, < 16.22.0'
published: '2026-08-17'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:11:46.833'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-65974'
references:
  - url: 'https://github.com/frappe/erpnext/releases/tag/v15.111.0'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/releases/tag/v16.22.0'
    label: security-advisories@github.com
  - url: 'https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr'
    label: security-advisories@github.com
  - url: >-
      https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-08-18T14:16:59.926975Z'
ingestedAt: '2026-09-13T20:23:46.617Z'
epss: 0.01029
epssPercentile: 0.62125
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
