8.8

CVE-2025-66434: frappe erpnext Code Injection

CVSS: 8.8v3.1HighAnalyzed
Published 15-12-2025Last modified 17-12-2025

Vulnerability summary

CVE-2025-66434 is a high (CVSS 8.8) Code Injection vulnerability in frappe erpnext. EPSS estimates a 0.59% chance of exploitation in the next 30 days, higher than 47.4% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.59%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2reference

Timeline

  1. 15-12-2025
    PublishedVulnerability first disclosed.
  2. 17-12-2025
    Last modifiedVulnerability information updated.

Description

An SSTI (Server-Side Template Injection) vulnerability exists in the get_dunning_letter_text method of Frappe ERPNext through 15.89.0. The function renders attacker-controlled Jinja2 templates (body_text) using frappe.render_template() with a user-supplied context (doc). Although Frappe uses a custom SandboxedEnvironment, several dangerous globals such as frappe.db.sql are still available in the execution context via get_safe_globals(). An authenticated attacker with access to configure Dunning Type and its child table Dunning Letter Text can inject arbitrary Jinja expressions, resulting in server-side code execution within a restricted but still unsafe context. This can leak database information.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.59%

Chance of exploitation in the next 30 days

Percentile

47%

Versus all other CVEs

30-day change

0.00 pp

From 0.59% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.59%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (notion.so)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (iamanc.github.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Frappe1 product

1 vendor · 1 product

References

2 links