All vulnerabilities

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
Weakness
Improper privilege management (CWE-269)Mass assignment (CWE-915)
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:

From henrygd/beszel's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BeszelServers and applications · github:henrygd/beszel
  • From 0.9.0 before 0.20.0

About Beszel

Lightweight server monitoring with historical data, docker stats, and alerts.

From its GitHub repository.
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

References