Description
Mealie before 3.21.0 fails to validate user ownership in the ratings and favorites endpoints, allowing authenticated attackers to read any user's recipe ratings and favorites by specifying arbitrary user IDs in the URL path. Attackers can access private recipe identifiers, rating values, and favorite flags belonging to other users across different groups or households.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mealie-recipes | mealie | < 3.21.0 | 3.21.0 |
References
- GitHub Issue #7909 issue-tracking
- https://github.com/mealie-recipes/mealie product
- https://github.com/mealie-recipes/mealie/blob/v3.20.1/mealie/routes/users/ratings.py#L44-L52 technical-description
- https://github.com/mealie-recipes/mealie/blob/v3.20.1/mealie/repos/repository_users.py#L82-L88 technical-description
- https://github.com/mealie-recipes/mealie/pull/7903 patch issue-tracking
- https://github.com/mealie-recipes/mealie/commit/6889101a760a457019276c10514e630660b3ed28 patch
- mealie v3.21.0 Release Notes release-notes
- VulnCheck Advisory: Mealie before 3.21.0 Information Disclosure via Ratings Endpoint third-party-advisory