CVE-2026-65974
Received Received - Intake

Server-Side Template Injection in ERPNext

Vulnerability report for CVE-2026-65974, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-17

Last updated on: 2026-08-17

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-17
Last Modified
2026-08-17
Generated
2026-08-18
AI Q&A
2026-08-18
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
frappe erpnext to 16.22.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in ERPNext allows limited authenticated users to bypass permission boundaries due to exposed frappe.render_template without restrict_globals enforcement. This enables server-side template injection and remote code execution.

Impact Analysis

An attacker with limited access could escalate privileges, execute arbitrary code on the server, steal sensitive data, or disrupt ERPNext operations. The high CVSS score (9.9) indicates severe impact.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR (data protection) and HIPAA (health data security) requirements. Compliance may be compromised if exploited.

Mitigation Strategies

Upgrade ERPNext to version 15.111.0 or 16.22.0 or later to fix the vulnerability. Ensure frappe.render_template is not exposed without restrict_globals enforcement.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65974. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart