Frappe Framework before 15.123.0 and 16.x before 16.50.0 contains a server-side request forgery vulnerability in the frappe.email.email_body.get_email_html 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.
https://github.com/frappe/frappe/releases/tag/v16.50.0
https://github.com/frappe/frappe/releases/tag/v15.123.0
https://github.com/frappe/frappe/pull/43688
https://github.com/frappe/frappe/commit/887d027ffd9bb48544a7f68c3762670a480cb9e2
https://github.com/frappe/frappe/commit/5787684f0ad0352f414436d6f39479a9f35d3d9b
https://github.com/frappe/frappe/blob/v15.121.1/frappe/email/email_body.py#L420-L452