CVE-2026-27838: CWE-639: Authorization Bypass Through User-Controlled Key in wger-project wger
wger is a free, open-source workout and fitness manager. Five routine detail action endpoints check a cache before calling `self.get_object()`. In versions up to and including 2.4, ache keys are scoped only by `pk` — no user ID is included. When a victim has previously accessed their routine via the API, an attacker can retrieve the cached response for the same PK without any ownership check. Commit e964328784e2ee2830a1991d69fadbce86ac9fbf contains a patch for the issue.
AI Analysis
Technical Summary
The vulnerability CVE-2026-27838 affects wger, a free and open-source workout and fitness management application. In versions up to and including 2.4, five routine detail action API endpoints implement caching to improve performance. However, the cache keys are constructed solely based on the primary key (pk) of the routine, without incorporating the user ID or ownership information. This design flaw means that when a user accesses their routine, the response is cached under a key that is not user-specific. An attacker who knows or guesses the pk of another user's routine can retrieve the cached response from the API without any authorization checks, effectively bypassing access controls. The vulnerability is classified under CWE-639 (Authorization Bypass Through User-Controlled Key). The patch referenced (commit e964328784e2ee2830a1991d69fadbce86ac9fbf) fixes the issue by including user identifiers in the cache key, ensuring that cached data is scoped per user and preventing unauthorized access. The CVSS v3.1 base score is 3.1, reflecting low severity due to limited impact (confidentiality only), the need for low privileges, and high attack complexity. There are no known exploits in the wild at this time.
Potential Impact
This vulnerability allows unauthorized users to access cached routine details of other users without authentication or user interaction, leading to a breach of confidentiality. While it does not affect data integrity or availability, the exposure of personal fitness routines could violate user privacy and potentially expose sensitive health-related information. For organizations or communities relying on wger for fitness management, this could undermine user trust and compliance with data protection regulations such as GDPR. The impact is limited to information disclosure and requires the attacker to know or guess valid routine primary keys, which may reduce exploitability. However, in environments with many users and predictable or sequential PKs, the risk of unauthorized data access increases. Since no known exploits exist yet, the threat is currently theoretical but should be addressed proactively.
Mitigation Recommendations
Organizations using wger versions 2.4 or earlier should upgrade immediately to the patched version containing commit e964328784e2ee2830a1991d69fadbce86ac9fbf or later, which scopes cache keys by user ID to prevent unauthorized access. If upgrading is not immediately feasible, administrators should consider disabling caching on the affected routine detail endpoints to eliminate the vulnerability vector. Additionally, implementing strict API access controls and monitoring for unusual access patterns to routine details can help detect exploitation attempts. Developers should review other caching mechanisms in the application to ensure user scoping is consistently applied. Finally, educating users about the importance of strong authentication and limiting exposure of routine identifiers can reduce the risk of exploitation.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, Sweden, Brazil, India
CVE-2026-27838: CWE-639: Authorization Bypass Through User-Controlled Key in wger-project wger
Description
wger is a free, open-source workout and fitness manager. Five routine detail action endpoints check a cache before calling `self.get_object()`. In versions up to and including 2.4, ache keys are scoped only by `pk` — no user ID is included. When a victim has previously accessed their routine via the API, an attacker can retrieve the cached response for the same PK without any ownership check. Commit e964328784e2ee2830a1991d69fadbce86ac9fbf contains a patch for the issue.
AI-Powered Analysis
Technical Analysis
The vulnerability CVE-2026-27838 affects wger, a free and open-source workout and fitness management application. In versions up to and including 2.4, five routine detail action API endpoints implement caching to improve performance. However, the cache keys are constructed solely based on the primary key (pk) of the routine, without incorporating the user ID or ownership information. This design flaw means that when a user accesses their routine, the response is cached under a key that is not user-specific. An attacker who knows or guesses the pk of another user's routine can retrieve the cached response from the API without any authorization checks, effectively bypassing access controls. The vulnerability is classified under CWE-639 (Authorization Bypass Through User-Controlled Key). The patch referenced (commit e964328784e2ee2830a1991d69fadbce86ac9fbf) fixes the issue by including user identifiers in the cache key, ensuring that cached data is scoped per user and preventing unauthorized access. The CVSS v3.1 base score is 3.1, reflecting low severity due to limited impact (confidentiality only), the need for low privileges, and high attack complexity. There are no known exploits in the wild at this time.
Potential Impact
This vulnerability allows unauthorized users to access cached routine details of other users without authentication or user interaction, leading to a breach of confidentiality. While it does not affect data integrity or availability, the exposure of personal fitness routines could violate user privacy and potentially expose sensitive health-related information. For organizations or communities relying on wger for fitness management, this could undermine user trust and compliance with data protection regulations such as GDPR. The impact is limited to information disclosure and requires the attacker to know or guess valid routine primary keys, which may reduce exploitability. However, in environments with many users and predictable or sequential PKs, the risk of unauthorized data access increases. Since no known exploits exist yet, the threat is currently theoretical but should be addressed proactively.
Mitigation Recommendations
Organizations using wger versions 2.4 or earlier should upgrade immediately to the patched version containing commit e964328784e2ee2830a1991d69fadbce86ac9fbf or later, which scopes cache keys by user ID to prevent unauthorized access. If upgrading is not immediately feasible, administrators should consider disabling caching on the affected routine detail endpoints to eliminate the vulnerability vector. Additionally, implementing strict API access controls and monitoring for unusual access patterns to routine details can help detect exploitation attempts. Developers should review other caching mechanisms in the application to ensure user scoping is consistently applied. Finally, educating users about the importance of strong authentication and limiting exposure of routine identifiers can reduce the risk of exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-24T02:32:39.801Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69a0c89232ffcdb8a2524530
Added to database: 2/26/2026, 10:26:26 PM
Last enriched: 2/26/2026, 10:42:52 PM
Last updated: 2/27/2026, 5:39:17 AM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-3292: SQL Injection in jizhiCMS
MediumCVE-2026-28370: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in OpenStack Vitrage
CriticalCVE-2026-3286: Server-Side Request Forgery in itwanger paicoding
MediumCVE-2026-2428: CWE-345 Insufficient Verification of Data Authenticity in techjewel Fluent Forms Pro Add On Pack
HighCVE-2026-3285: Out-of-Bounds Read in berry-lang berry
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.