Servers and applications
GHSA-wqvf-7262-m7g8
OAuth self-signup role escalation via mass assignment
- Severity
- Medium 5.4
- Published
- 28 Sept 2026
- Last changed
- 26 Oct 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 0.20.0
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N- Sources
- Project advisories (GitHub)
Description
CWE-269 (Improper Privilege Management) |
Beszel Hub uses PocketBase as its data layer. When self-service OAuth/OIDC sign-up is enabled (USER_CREATION=true), a new OAuth user is supposed to get the regular user role. The sign-up path instead accepts attacker-controlled extra fields, and users.role is writable during OAuth record creation – so an attacker can self-assign admin.
Threat model. The attacker must possess a genuine account at the configured OAuth/OIDC provider (this is not an authentication bypass). The impact is privilege escalation from user (self-service OAuth sign-up) to admin.
When USER_CREATION=true, Beszel allows OAuth2-based creation of users records using the rule:
The OAuth2 createData payload can include writable user fields, including role. Since the role field accepts admin, an attacker registering a new OAuth2 account can supply role: "admin". The default-role hook only assigns user when the role is empty:
Affected software
| Software | Affected versions |
|---|---|
BeszelServers and applications · github:henrygd/beszel |
|
About Beszel
Lightweight server monitoring with historical data, docker stats, and alerts.
- Docker Hub pulls
- 28,440,712Docker Hub, 15 Nov 2026
- GitHub stars
- 27,350GitHub, 15 Nov 2026
- Forks
- 1,183GitHub, 15 Nov 2026
- Latest release
- v0.21.2GitHub, 15 Nov 2026
- Released
- 12 Nov 2026GitHub
- License
- MITGitHub
- First published on GitHub
- 7 Jul 2024GitHub
Source code Website Docker image
Vulnerabilities in Beszel
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- GHSA-759g-ch5m-2gchAuthenticated IDOR in `/api/beszel/user-alerts` allows user to subscribe to alerts on systems they don't own by guessing 15 character random alphanumeric system IDMedium 4.2 20 Sept 2026
- CVE-2026-40077IDOR in hub API endpoints that read system ID from URL parameterLow 3.5 9 Apr 2026
- CVE-2026-27734Docker API Path Traversal via Unsanitized Container IDMedium 6.5 27 Feb 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-wqvf-7262-m7g8
- github.com https://github.com/henrygd/beszel/security/advisories/GHSA-wqvf-7262-m7g8