8.8

CVE-2025-66437: frappe erpnext Code Injection

Analyzed
Published 15-12-2025Last modified 16-12-2025

Vulnerability summary

CVE-2025-66437 is a high (CVSS 8.8) Code Injection vulnerability in frappe erpnext. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 48% 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.60%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference

Timeline

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

Description

An SSTI (Server-Side Template Injection) vulnerability exists in the get_address_display method of Frappe ERPNext through 15.89.0. This function renders address templates using frappe.render_template() with a context derived from the address_dict parameter, which can be either a dictionary or a string referencing an Address document. Although ERPNext uses a custom Jinja2 SandboxedEnvironment, dangerous functions like frappe.db.sql remain accessible via get_safe_globals(). An authenticated attacker with permission to create or modify an Address Template can inject arbitrary Jinja expressions into the template field. By creating an Address document with a matching country, and then calling the get_address_display API with address_dict="address_name", the system will render the malicious template using attacker-controlled data. This leads to server-side code execution or database information disclosure.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.60%

Chance of exploitation in the next 30 days

Percentile

48%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.60% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

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