← back
CVE-2026-33149

Tandoor Recipes Vulnerable to Host Header Injection

CVSS 8.1 HIGHEPSS 0.3%CWE-644
In short

Tandoor Recipes accepts any website name in requests without checking, allowing attackers to trick users into clicking fake invitation links that steal access tokens. This happens because the app uses these unvalidated names to build links sent in emails.

Technical detail

CVE-2026-33149 exploits ALLOWED_HOSTS = '*' configuration in Tandoor Recipes ≤2.5.3, enabling Host header injection attacks. An attacker sends requests with crafted Host headers; the application uses request.build_absolute_uri() to generate absolute URLs in invite emails, API responses, and OpenAPI schemas without validation, allowing token theft via phishing. The vulnerability requires network access to send requests but grants ability to redirect users and capture invitation tokens.

Summary generated and translated by AI from the official description.
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Versions up to and including 2.5.3 set ALLOWED_HOSTS = '*' by default, which causes Django to accept any value in the HTTP Host header without validation. The application uses request.build_absolute_uri() to generate absolute URLs in multiple contexts, including invite link emails, API pagination, and OpenAPI schema generation. An attacker who can send requests to the application with a crafted Host header can manipulate all server-generated absolute URLs. The most critical impact is invite link poisoning: when an admin creates an invite and the application sends the invite email, the link points to the attacker's server instead of the real application. When the victim clicks the link, the invite token is sent to the attacker, who can then use it at the real application. As of time of publication, it is unknown if a patched version is available.
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
Affected products
TandoorRecipes · recipes

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →