PT-2025-51252 · Frappe · Erpnext

An Chu

+1

·

Published

2025-12-15

·

Updated

2025-12-15

·

CVE-2025-66434

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Frappe ERPNext versions through 15.89.0
Description A Server-Side Template Injection (SSTI) issue exists in the get dunning letter text method. The function renders Jinja2 templates ()body text) using frappe.render template() with a user-supplied context ()doc). Despite the use of a SandboxedEnvironment, dangerous globals like frappe.db.sql remain accessible through get safe globals(). An authenticated attacker who can configure Dunning Type and its child table Dunning Letter Text can inject Jinja expressions, potentially leading to server-side code execution in a limited context and information disclosure from the database.
Recommendations Versions prior to 15.89.0 should be updated.

Exploit

Fix

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2025-66434

Affected Products

Erpnext