← back
CVE-2026-35046

Tandoor has a Stored CSS Injection via <style> Tag in Recipe Instructions (API-Level)

CVSS 5.4 MEDIUMEPSS 0.2%CWE-79
In short

Tandoor Recipes allows authenticated users to inject malicious CSS code into recipe instructions, which gets stored and served to other users. This can be used to alter the appearance of the app, trick users into clicking fake links, or steal sensitive information.

Technical detail

Stored CSS injection via unsanitized <style> tags in recipe instructions exploited by authenticated attackers. The bleach.clean() sanitizer whitelists <style> tags, allowing arbitrary CSS payloads to persist in the database and be served via API. Clients rendering instructions_markdown as HTML without additional sanitization execute attacker-controlled CSS, enabling UI redressing, phishing attacks, and potential data exfiltration.

Summary generated and translated by AI from the official description.
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Prior to 2.6.4, Tandoor Recipes allows authenticated users to inject arbitrary <style> tags into recipe step instructions. The bleach.clean() sanitizer explicitly whitelists the <style> tag, causing the backend to persist and serve unsanitized CSS payloads via the API. Any client consuming instructions_markdown from the API and rendering it as HTML without additional sanitization will execute attacker-controlled CSS — enabling UI redressing, phishing overlays, visual defacement, and CSS-based data exfiltration. This vulnerability is fixed in 2.6.4.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected products
TandoorRecipes · recipes

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →