CVE-2026-130069: Frappe Framework before 15.123.0 and 16.x before 16.50.0 SSRF via get_email_html
Frappe Framework before 15.123.0 and 16.x before 16.50.0 contains a server-side request forgery vulnerability in the frappe.email.emailbody.getemailhtml method, which lacks role checks. Authenticated users, including portal Website Users, can inject stylesheet link tags into unescaped email templates, causing Premailer to fetch internal or external hosts and return the content.
Affected Software
Event History
Frequently Asked Questions
Which users can exploit this issue?
Any authenticated user can exploit it, including portal Website Users. The vulnerable method lacks role checks, so elevated administrative privileges are not required.
What must an attacker be able to do to trigger server-side requests?
The attacker needs to inject stylesheet link tags into an unescaped email template. When the template is processed, Premailer fetches the referenced internal or external host and returns its content.
Are default role restrictions sufficient to prevent exploitation?
No. The affected get_email_html method lacks role checks, and the description specifically states that portal Website Users can exploit it.
Which releases need to be updated?
Frappe Framework versions before 15.123.0 are affected, as are 16.x versions before 16.50.0. Update to 15.123.0 or later in the 15.x line, or 16.50.0 or later in the 16.x line.