OneDev < 4.0.3 - User Access Token Leak
CVE-2021-21246
Verified
Description
OneDev before version 4.0.3 contains an insecure endpoint that allows retrieval of arbitrary user details, including access tokens, due to missing security checks on /users/{id}, letting attackers leak sensitive data and impersonate users, exploit requires no special conditions.
Severity
High
CVSS Score
8.6
Exploit Probability
49%
Affected Product
onedev
Published Date
January 23, 2026
Template Author
dhiyaneshdk
CVE-2021-21246.yaml
8.6Score
CVSS Metrics
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CVE ID:
cve-2021-21246
CWE ID:
cwe-862
Remediation Steps
Update to version 4.0.3 or later where user info is removed from the REST API.