Horizon Alert
Summary of the vulnerability and why it matters
Mealie, a self-hosted recipe management application, has a critical vulnerability in its recipe creation feature. This flaw allows for the injection of malicious scripts that can be persistently displayed to users, posing a significant security risk if the application is exposed externally. The main concern is confirming its relevance and potential exposure.
- A security flaw allows malicious code in recipe notes.
- It enables persistent script injection for visible users.
- Confirm relevance and potential exposure to users.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this vulnerability by crafting a malicious recipe and submitting it through the application's API. Because the application does not properly sanitize user-provided notes and text when creating recipes, these specially crafted inputs are stored and later displayed on the user interface without adequate escaping. This can lead to arbitrary code execution within the context of a user's browser.
- Requires authenticated access to create recipes.
- Malicious input submitted via API.
- Risk of arbitrary code execution.
Live Threat
Current exploitation, exposure, and threat context
In Mealie, when a user with authenticated access creates a recipe, unsanitized input in the "note" and "text" fields of the recipe creation endpoint can be rendered on the frontend. This vulnerability could allow for persistent cross-site scripting when supported by the advisory.
- User-provided recipe notes and text.
- Malicious script injected into recipe fields.
- Sensitive data may be exposed to attackers.
Operational Fix
Recommended remediation, mitigation, and detection steps
The Mealie application, specifically versions up to and including 3.0.1, is vulnerable to stored cross-site scripting due to unsanitized user input in recipe creation. This threat requires immediate attention from the team responsible for managing the Mealie instance. The first practical step is to identify all instances of Mealie within the environment, assess their reachability and business criticality, and then determine the accountable owner for remediation planning.
- Mealie instance owners should address this.
- Verify Mealie instances and their exposure.
- Plan remediation based on identified risk.