CVE Explorer
CVE-2025-66437
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 attack
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://iamanc.github.io/post/erpnext-ssti-bug-4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/cna/references/1
{"url":"https://www.notion.so/SSTI-bug-4-239e6086eadc80aa9331fba874c674a5?source=copy_link"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:34973ab9e49963e820b2c5023ad74c4eda1326dc0667664bfb62658a29ecdadf · sha256:6e443f1ad54d4c33… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.