CVE-2026-86254: Wger Nullable Gym Id Comparison

Direct comparison of `gym_id` between user profiles can bypass multi-tenant isolation when both users have `gym_id=None`. Use `is_same_gym()` or verify neither gym ID is None before comparing.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-86254-wger-nullable-gym-id-comparison --engine opengrep

Description

Direct comparison of `gym_id` between user profiles can bypass multi-tenant isolation when both users have `gym_id=None`. Use `is_same_gym()` or verify neither gym ID is None before comparing.