CVE-2026-145257: Mealie before 3.31.0 HTML Injection in Invitation Emails via Token Field
Mealie before 3.31.0 contains an HTML injection vulnerability that allows authenticated users with GROUPINVITE permission to inject markup into invitation emails via an unvalidated token. Attackers can supply a token containing a double quote to POST /api/households/invitations/email, breaking the href attribute to send instance-branded phishing links to chosen recipients.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated to Mealie and have the GROUP_INVITE permission. They also need to be able to submit a crafted invitation request to the email invitation endpoint.
What is required for the attack to succeed against recipients?
The attacker supplies a token containing a double quote to break the invitation link's href attribute and inject markup. A recipient must receive and interact with the resulting instance-branded invitation email for the phishing scenario to succeed.
Which installations are affected?
Mealie versions before 3.31.0 are affected. The issue is associated with the email invitation endpoint at /api/households/invitations/email.
What should be done if upgrading cannot happen immediately?
Restrict GROUP_INVITE permission to trusted users, since this permission is required to craft the malicious invitation email. Monitor or limit use of the email invitation endpoint where operationally possible.