An HTML injection issue allows users with access to the email sending functionality to inject arbitrary HTML code into emails sent via the admin interface, potentially leading to session cookie theft and the alteration of page content.
The vulnerability was discovered in the /admin/email/send-test-email
endpoint using the POST
method. The vulnerable parameter is content
, which permits the injection of arbitrary HTML code during the email sending process. While JavaScript code injection is blocked through filtering, HTML code injection remains possible.
To reproduce the vulnerability, a user must fill out the email's content form with the desired HTML payload.
This HTML injection vulnerability can potentially enable phishing attacks by allowing the insertion of any html like fake login forms, etc.
All functionalities that process user input should be carefully reviewed to ensure that data is appropriately encoded as HTML entities in server responses. For instance, a reflected input paramete like <h1> just a test </h1> <p> <img>
should be displayed in the HTML response as <h1> just a test </h1> <p> <img>
.
{ "nvd_published_at": "2025-04-08T11:15:44Z", "cwe_ids": [ "CWE-79" ], "severity": "LOW", "github_reviewed": true, "github_reviewed_at": "2025-04-08T14:51:41Z" }