Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
frappe frappe
Default version status: unaffected
0 to < 15.123.0affected16.0.0 to < 16.50.0affected
pkg:pypi/frappeReferences
- https://github.com/frappe/frappe/pull/43688 ↗
- https://github.com/frappe/frappe/blob/v15.121.1/frappe/email/email_body.py#L420-L452 ↗
- https://github.com/frappe/frappe/commit/5787684f0ad0352f414436d6f39479a9f35d3d9b ↗
- https://github.com/frappe/frappe/commit/887d027ffd9bb48544a7f68c3762670a480cb9e2 ↗
- https://github.com/frappe/frappe/releases/tag/v15.123.0 ↗
- https://github.com/frappe/frappe/releases/tag/v16.50.0 ↗
- https://www.vulncheck.com/advisories/frappe-framework-before-15.123.0-and-16-x-before-16.50.0-ssrf-via-get-email-html ↗