CVE-2026-59962 Tandoor Recipes: ORM ORDER BY Injection via FK Traversal in Tandoor Recipes

Medium 6.5 Published Updated

Authenticated attackers can inject SQL via ORM ordering fields to infer sensitive user data like password hashes and emails.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-59962?

CVE-2026-59962 is a medium-severity SQL injection vulnerability in TandoorRecipes recipes, published on 16 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Prior to 2.6.10, passes unvalidated sort_order and order_field strings into Django ORM order_by() calls when an authenticated user supplies foreign-key traversal paths in recipe search, RecipeBook, or stored CustomFilter ordering values. Request processing uses _finalize_ordering and order_by through 8080/api/recipe/ and 8080/api/recipe-book/. The attack works because Django interprets double-underscore ordering fields as related-table traversal, and observable result ordering leaks values from related User fields. This can infer password hashes, email addresses, administrator status, and other related database values. This issue is fixed in version 2.6.10.

Weakness: CWE-943

Which versions are affected by CVE-2026-59962?

How do I fix CVE-2026-59962?

No fix has been published for CVE-2026-59962 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-59962 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59962 exists.

Sources

Also known as GHSA-4x57-2q4q-xwpp.

Is CVE-2026-59962 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free