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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-16T16:52:49.172Z
- Modified: 2026-10-28T19:17:36.833Z
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- TandoorRecipes recipes: < 2.6.10

## References

- <https://github.com/TandoorRecipes/recipes/security/advisories/GHSA-4x57-2q4q-xwpp> (exploit)
- <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>

## Sources

- CVE List: [CVE-2026-59962](https://www.cve.org/CVERecord?id=CVE-2026-59962), CVE Terms of Use, modified 2026-10-28
- NVD: [CVE-2026-59962](https://nvd.nist.gov/vuln/detail/CVE-2026-59962), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-59962 · Whole record: https://cve.day/CVE-2026-59962.json · Rebuilt by cve.day 2026-11-25T22:59:45.067Z
