4.3

CVE-2025-66436: frappe erpnext Code Injection

CVSS: 4.3v3.1MediumAnalyzed
Published 15-12-2025Last modified 17-12-2025

Vulnerability summary

CVE-2025-66436 is a medium (CVSS 4.3) Code Injection vulnerability in frappe erpnext. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 25.7% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
27/100
0100
Medium · default modelHow is this calculated?
CVSS score
4.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.34%
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_terms_and_conditions method of Frappe ERPNext through 15.89.0. The function renders attacker-controlled Jinja2 templates (terms) 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 create or modify a Terms and Conditions document can inject arbitrary Jinja expressions into the terms field, resulting in server-side code execution within a restricted but still unsafe context. This vulnerability can be used to leak database information.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.34%

Chance of exploitation in the next 30 days

Percentile

26%

Versus all other CVEs

30-day change

0.00 pp

From 0.34% on 21-09-2026

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

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