CVE Explorer
CVE-2025-66438
A Server-Side Template Injection (SSTI) vulnerability exists in the Frappe ERPNext through 15.89.0 Print Format rendering mechanism. Specifically, the API frappe.www.printview.get_html_and_style() triggers the rendering of the html field inside a Print Format document using frappe.render_template(template, doc) via the get_rendered_template() call chain. Although ERPNext wraps Jinja2 in a SandboxedEnvironment, it exposes sensitive functions such as frappe.db.sql through get_safe_globals(). An au
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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /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:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://iamanc.github.io/post/erpnext-ssti-bug-5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /containers/cna/references/1
{"url":"https://www.notion.so/SSTI-bug-5-239e6086eadc80a48f17c1257a604d2c?source=copy_link"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e11b8264bfc7c7f790db167fd9408b8fcf9068bb5cdf8374ee3ab8e4149e89a0 · sha256:255fd7693dbb2efe… · /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.